tonywatsonhelp
Well-known Member
- Joined
- Feb 24, 2014
- Messages
- 3,210
- Office Version
- 365
- 2019
- 2016
- Platform
- Windows
Hi Guys,
I've got this macro that runs, and part of what it does is print out a document, but I don't always want to print it out.
this is the part of the code that currently prints
How do I get it to show a message box saying "Do you want to print a receipt?"
with the option of yes or no, if yes then print and carry on with macro if no skip print and carry on with macro?
Thanks
Tony
I've got this macro that runs, and part of what it does is print out a document, but I don't always want to print it out.
this is the part of the code that currently prints
Code:
Sheets("Print Page (2)").Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1
How do I get it to show a message box saying "Do you want to print a receipt?"
with the option of yes or no, if yes then print and carry on with macro if no skip print and carry on with macro?
Thanks
Tony