Print all tabs as one print job except 2

cocoa

New Member
Joined
May 5, 2011
Messages
2
I'd like to print all tabs as one print job (without naming tabs as they may come and go), but exlude the first 2 worksheets (which can be specifically named). Thanks!!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Try,

Code:
Sub Foo()
For i = 3 To Worksheets.Count
Worksheets(i).PrintPreview  'change to Worksheets(i).PrintOut once it is working for you in preview mode
Next i
End Sub
 
Upvote 0
Jim - that's wonderful, nice and short, thanks. My utopia would be for it to print as one job (then I get it double-sided), but I will use this unless anyone has a modification to suggest.

Datsmart, thanks very much. Unfortunately, being a total newbie, I don't understand what to change with the "Codename", and when I use the code as is I get only the 1st 2 pages printing, which are the ones I want to exclude.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,151
Members
452,891
Latest member
JUSTOUTOFMYREACH

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
Back
Top