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
Re: VB Excel Userform - print in Landscape
Welcome to the forums. :wave:
On what line does the error occur?
Re: VB Excel Userform - print in Landscape
.PageSetup.Orientation = xlLandscape
thanks
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.
Re: VB Excel Userform - print in Landscape
Moved to Office Development
Re: VB Excel Userform - print in Landscape