Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel User form - print landscape


hello,
Happy new Year


I am having trouble printing my user form in landscape view. here is m
code...
Private Sub cmdPrint_Click()
With InputForm
.PageSetup.Orientation = xlLandscape
.PrintForm
End With
End Sub


"Method or Data member not found" this is the error message i a
getting..

thank you in advance...

Prett

--
pretty ga
-----------------------------------------------------------------------
pretty gal's Profile: http://www.hightechtalks.com/m66
View this thread: http://www.hightechtalks.com/t232395

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Excel User form - print landscape

what line is the code breaking on?
pagesteup.orientation or printform ?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Excel User form - print landscape

You have 2 problems. There is no PageSetup property of a
userform, so get rid of that line. Next, you're missing the
leading period before PrintForm.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"pretty gal"
wrote in message
...

hello,
Happy new Year


I am having trouble printing my user form in landscape view.
here is my
code...
Private Sub cmdPrint_Click()
With InputForm
PageSetup.Orientation = xlLandscape
PrintForm
End With
End Sub


"Method or Data member not found" this is the error message i
am
getting..

thank you in advance...

Pretty


--
pretty gal
------------------------------------------------------------------------
pretty gal's Profile: http://www.hightechtalks.com/m661
View this thread: http://www.hightechtalks.com/t2323959



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Excel User form - print landscape

You got a reply to your post in .programming.

pretty gal wrote:

hello,
Happy new Year

I am having trouble printing my user form in landscape view. here is my
code...
Private Sub cmdPrint_Click()
With InputForm
PageSetup.Orientation = xlLandscape
PrintForm
End With
End Sub

"Method or Data member not found" this is the error message i am
getting..

thank you in advance...

Pretty

--
pretty gal
------------------------------------------------------------------------
pretty gal's Profile: http://www.hightechtalks.com/m661
View this thread: http://www.hightechtalks.com/t2323959


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
User Form Landscape mully Excel Discussion (Misc queries) 0 January 11th 06 05:10 PM
User form - print Landscape Priya Menan Excel Programming 1 January 5th 06 03:40 AM
Print Excel Form In Landscape Mode? Jeffrey[_7_] Excel Programming 2 September 28th 04 11:17 PM
Printing a user form landscape Dave[_32_] Excel Programming 1 December 21st 03 03:51 PM
print a form landscape Dave[_32_] Excel Programming 0 December 17th 03 05:00 PM


All times are GMT +1. The time now is 03:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"