ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Need help for Printing Macro. (https://www.excelbanter.com/excel-programming/331584-need-help-printing-macro.html)

sighsky

Need help for Printing Macro.
 
Hi,
How do I write the code for printing for 3 copies and then exit the
excel program without prompt for saving?

Any help would be very appreciated.

Bob Phillips[_7_]

Need help for Printing Macro.
 

ActiveSheet.PrintOut copies:=3
activeworkbook.close SaveChanges:=False

if you want to quit excel then use

Application.Quit


--
HTH

Bob Phillips

"sighsky" wrote in message
...
Hi,
How do I write the code for printing for 3 copies and then exit the
excel program without prompt for saving?

Any help would be very appreciated.





All times are GMT +1. The time now is 10:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com