Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel userform printing

Status
Not open for further replies.

boona1

Technical User
Nov 25, 2002
2
GB
Is there any way of setting up an excel userform to print in landscape format either by coding or through the properties window. Using the printform function automatically prints in portrait.

Thanks in advance
 
Here is how it goes:

open Excel file
Tools/Macros/Record New Macro/OK

Now go
File/Page Setup/Landscape/OK

Now Go
Tools/Macro/Macros/Edit

You will see whole 9 yards of code
So, pick

With ActiveSheet.PageSetup
.Orientation = xlLandscape
End With

Worked ? I hope

TIA
 
Thanks for this.

I use this code for standard excel worksheets but userforms seem to have another set of rules when it comes to printing.

Gareth
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top