I'm trying to take a excel spreadsheet and be able to hit one button and automatically print out certain pages in the excel file but not all. Do they have a macro that can do this with a click of a button? Any help would be appreciated.
Will it always be the same sheets you want to print?
HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
Sub PrintSheets()
ActiveWorkbook.Worksheets("SheetToPrintNameOrIndex").PrintOut
ActiveWorkbook.Worksheets("SheetToPrintNameOrIndex2").PrintOut
End Sub
Just add a line for each sheet you want to print.
HarleyQuinn
---------------------------------
The most overlooked advantage to owning a computer is that if they foul up there's no law against wacking them around a little. - Joe Martin
Get the most out of Tek-Tips, read FAQ222-2244 before posting.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.