Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Code for a button to print

Status
Not open for further replies.

MrMcFestoe

Technical User
Apr 6, 2003
119
GB
Looking for help on the VBA code to place behind a button to print a worksheet.

Thanks
 
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

Blue [dragon]

If I wasn't Blue, I would just be a Dragon...
 
Blue,

Thanks for the quick reply, just tried that and getting a spool32 error, i think this could be somthing to do with the printer driver but it work fine with everything else.

Any ideas?
 
Blue

a printer box appear and then spool32 and excel has crashed and not responding?

Now stuck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top