Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to use VBA to print an excel form. I use the
object.PrintForm method. However the form is printed in portrait mode when I want it printed in Landscape mode. How do I get the printed output to come out in Landscape mode? I want to be able to do this in VBA. Thanks. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jeffrey,
Use this line: ActiveSheet.PageSetup.Orientation = xlLandscape If you're interested in further fine tuning of the print job, try this: -Tools Macro Record new macro -FilePage set up -set any options you want and click OK -click the stop recording button -now go to VBA and look over the code Excel created Only the settings you change need to be kept, the rest can be deleted. HTH, Chris "Jeffrey" wrote in message om... I am trying to use VBA to print an excel form. I use the object.PrintForm method. However the form is printed in portrait mode when I want it printed in Landscape mode. How do I get the printed output to come out in Landscape mode? I want to be able to do this in VBA. Thanks. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to stop form printing | Excel Worksheet Functions | |||
stop form printing | Excel Discussion (Misc queries) | |||
printing onto re printed form | Excel Discussion (Misc queries) | |||
I created a form on excel. want to edit the form without printing | Excel Discussion (Misc queries) | |||
Printing a User Form | New Users to Excel |