sspatriots
Well-known Member
- Joined
- Nov 22, 2011
- Messages
- 585
- Office Version
- 365
- Platform
- Windows
Can anyone tell me how I would get the "Cancel" button to select "Cancel" when the "Printer Setup" dialog box appears? I'm asking because I only want the "Print" window that has all the options for the Margins, Orientation and so on to appear.
When I use the following:
A "Printer Setup" dialog box appears. Then I have to select "Cancel" in order to be taken to the "Print" screen next. Not sure if there is another way to bypass that "Printer Setup" dialog box or not.
Also, I want my code to set the print area to be the "Print Active Sheets" option.
Thank you, SS
When I use the following:
VBA Code:
Application.Dialogs(xlDialogPrinterSetup).Show
A "Printer Setup" dialog box appears. Then I have to select "Cancel" in order to be taken to the "Print" screen next. Not sure if there is another way to bypass that "Printer Setup" dialog box or not.
Also, I want my code to set the print area to be the "Print Active Sheets" option.
Thank you, SS