Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to make a print macro that will automatically print in landscape
mode. This macro will be specific to one sheet only. I have tried this Sub printactivepage() Application.Dialogs(xlDialogPageSetup).Show End Sub and the options show fine, but when I click OK it will not print. Also, I do not want any kind of option box to show, only to go strait to print in landscape. Please note that I am very new to VBA and macros so any help would be greatly appreciated. Thank you! |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
You will have to use the PrintOut command to get it to print. It will not
print from the dialog box when called from code. This is by design from Microsoft. "Mike B" wrote: I am trying to make a print macro that will automatically print in landscape mode. This macro will be specific to one sheet only. I have tried this Sub printactivepage() Application.Dialogs(xlDialogPageSetup).Show End Sub and the options show fine, but when I click OK it will not print. Also, I do not want any kind of option box to show, only to go strait to print in landscape. Please note that I am very new to VBA and macros so any help would be greatly appreciated. Thank you! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to hide rows with a certain cell empty then set print area and print | Excel Programming | |||
Pivot Table macro to set print area and print details of drill down data | Excel Discussion (Misc queries) | |||
Create a print macro that would automatically select print area? | Excel Worksheet Functions | |||
Why does macro speed slow after Excel Print or Print Preview? | Excel Programming | |||
Need Help w/ Print Macro to Print All Visible Sheets (including Charts) in a Workbook | Excel Programming |