Looking for an efficient way to print many sheets using VBA

cr731

Well-known Member
Joined
Sep 17, 2010
Messages
611
I have a workbook with about 80 sheets, and I want to have a button to automatically print about 75 of those sheets. Is there an efficient way I can do something like this? I've searched around but have only found methods that require you to identify each sheet you want to print. With this many sheets that seems very inefficient... is there some code that will print sheets 1 through 50 and then 55 through 80?

As an unrelated question, is there any way I can re-order my sheets in the VBA project window? For some reason it isn't ordering them in the number of the sheets, for example I see something like this:

Sheet1 (Input)
Sheet10 (Sales)
Sheet11 (Costs)
Sheet2 (Lists)
....

Can I make it so it displays as

Sheet1 (Input)
Sheet2 (Lists)
....
Sheet10 (Sales)
Sheet11 (Costs)


Thanks in advance.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
record a macro that selects the sheets you want to print, then print them. you'll only have to do it once, then you're done.
 
Upvote 0

Forum statistics

Threads
1,224,538
Messages
6,179,412
Members
452,912
Latest member
alicemil

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