Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, and 2013. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Printing an Entire Workbook by Default.

Printing an Entire Workbook by Default

by Allen Wyatt
(last updated January 31, 2019)

3

When you choose to print in Excel, the Print dialog box (Excel 2007) or the File tab of the ribbon (later versions of Excel) allows you to specify many things about the print job. The Print What drop-down list allows you to indicate whether you want to print the selected worksheets, the selection, or the entire workbook. The Print What setting normally defaults to Active Worksheets, but what if you want it to default so the entire workbook is printed?

Unfortunately, Excel does not remember what you select using the Print What controls from one print job to the next; it always resets the default. The easiest way to always print the entire workbook, however, it to make a simple little macro like this:

Sub PrintItAll()
    ActiveWorkbook.PrintOut
End Sub

You can then create a button on the Quick Access Toolbar and assign this macro to that button. When you want to print the entire workbook, just click on the button. Easy and quick.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the ExcelTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10918) applies to Microsoft Excel 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Excel here: Printing an Entire Workbook by Default.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Sorting Letters and Numbers

Sorting information in a worksheet can be confusing when Excel applies sorting rules of which you are unaware. This is ...

Discover More

Watermarks in Columns

If you are creating small flyers (two per page), you may want to include a watermark graphic in the background of each of ...

Discover More

Detecting Hidden Rows

Excel allows you to easily hide rows in a worksheet, so their contents are not visible. Figuring out how to detect where ...

Discover More

Excel Smarts for Beginners! Featuring the friendly and trusted For Dummies style, this popular guide shows beginners how to get up and running with Excel while also helping more experienced users get comfortable with the newest features. Check out Excel 2013 For Dummies today!

More ExcelTips (ribbon)

Printing Based on Cell Contents

Would you like to have a worksheet automatically printed when a particular cell contains a specified value? You can ...

Discover More

Limiting Printing to a Workbook from a Set Location

When you share workbooks on a company server, it can be frustrating if the workbooks are downloaded to individual ...

Discover More

Setting Default Print Margins

Don't like the print margins that Excel uses by default? You can change the default by changing the workbook on which ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is four minus 2?

2019-07-24 12:00:04

kevin

This worked great for me years ago. Has this been tested to work with Windows 10 and Excel O365 ? THanks!


2017-02-10 11:12:24

Peter Atherton

Mike

Macros are written in the Visual Basic Editior (VBE) which can be accessed on the Developer's TAb. If that is not shown then go to Excel Options,Popular and click Show Developer Tab in the Ribbon.

To access the VBE press ALT + F11, Insert, Module. You can now paste the code into the module; press ALT + Q to close the Editor an return to the spreadsheet page.

To run the macro press ALT + F8 to see a list of all the macros in the workbook. Select one and click Run.

Adding a Button
Alan has a page on adding buttons to a sheet in the macros section, But quickly:
1. Choose Developer Tab, Controls, Insert drop button; the first control is a Form command Click this.
2 Draw the button onto the sheet and this opns the Assign Macro Form. Select the macro name and choose OK.
3 While the Button is still actice change the text (if you missed this out you can right-click the button and choose Edit Text, or reassign the buton to another macro

Finally, Allan has just started a macro tutorial.get signed up. I looked at the first lesson (Recording macros) and it was very impressive,


2017-02-09 17:06:22

mike

would you kindly explain how to do the rest of the operations. make a macro, make a button, etc?

Thank you


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.