Ppen Printer Dialogue box from macro

Shanks100

New Member
Joined
Jul 28, 2013
Messages
3
Hi, I'm using the following code called from a command button on a sheet called 'Main' to print another sheet called 'Stage 1' in my workbook

"Sheets("Stage 1").PrintOut Copies:=Range("C65").Value"

This works fine as 'Stage 1' is formatted as only one A4 page.

But now I want to print the next worksheet 'Stage 2'. Using a similar code so I get the right number of copies but this one is two A4 sheets long. So I need to open the print dialogue box so that I can select double sided printing. I have tried...

Application.Dialogs(xlDialogPrint).Show
Sheets("Stage 2").PrintOut Copies:=Range("C65").Value

But whilst this does open the dialogue box, it then prints double sided copies of the worksheet 'Main' and then prints Stage 2 using the default settings. How can I send it the print command for Stage 2 but to open the print dialogue for that operation only.

Thanks for any help you can offer.
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,137,060
Messages
5,679,376
Members
419,824
Latest member
Mercy kiara

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top