|
-
Jan 5th, 2006, 02:47 PM
#1
Thread Starter
Member
VB Excel Userform - print in Landscape
Hello
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 Gal
-
Jan 5th, 2006, 02:48 PM
#2
Re: VB Excel Userform - print in Landscape
Welcome to the forums. 
On what line does the error occur?
-
Jan 5th, 2006, 02:51 PM
#3
Thread Starter
Member
Re: VB Excel Userform - print in Landscape
.PageSetup.Orientation = xlLandscape
thanks
-
Jan 5th, 2006, 04:00 PM
#4
Hyperactive Member
Re: VB Excel Userform - print in Landscape
.pagesetup.orientation does not belong to a form object, only a worksheet object. I don't believe you can adjust the orientation when printing the user form.
-
Jan 6th, 2006, 09:17 AM
#5
Re: VB Excel Userform - print in Landscape
Moved to Office Development
-
Jan 6th, 2006, 09:39 AM
#6
Thread Starter
Member
Re: VB Excel Userform - print in Landscape
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|