How do I create a macro to print various tabs within a excel workbook and make them print ready?

iouu2

New Member
Joined
Apr 15, 2011
Messages
14
Took basics in Undergrad :eek: but don't even remember how to create a command button any more :confused:.

What I need is a command button that can make it easy to print various tabs within the excel workbook and make them print ready (meaning click of a button and you can select which tabs you want to print) and make sure the view for them are print to one page.

The tab in which the command button will sit can be called "Header".
The other tabs in the workbook will be Tab 1, Tab 2, Tab 3, etc. etc..

:rolleyes: Thanks!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Here is a quick one to try, I used Excel 2003 to create this macro. I am not really sure how you would change the entry for a different a tab selection, except to have a button for each. Perhaps someone with more experience will know. This macro will print any or ALL your TAB pages created and named it the brackets from any page your button is placed on (re: "Header". Remember to assign your button to the new macro. Be sure to check your PRINT AREA before printing. Good luck.

'</SPAN>
' PrintTabPages Macro</SPAN>
' Macro recorded 5/1/2014 by HD Racer</SPAN>
'</SPAN>
Sub PrintTabPages()</SPAN>
'
'Next step prints each tab out named in the brackets</SPAN>
‘</SPAN>
Sheets("Tab1").PrintOut copies:=1</SPAN>
Sheets("Tab2").PrintOut copies:=1</SPAN>
Sheets("Tab3").PrintOut copies:=1</SPAN>
'</SPAN>
</SPAN>End Sub</SPAN>
 
Upvote 0

Forum statistics

Threads
1,215,227
Messages
6,123,738
Members
449,116
Latest member
alexlomt

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