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 December 13, 2014)

2

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

Automatic Initial Capitals in Tables

Have you ever started typing words in a table, only to find that Word automatically capitalizes the first word in each ...

Discover More

Quickly Duplicating Drawing Objects

Excel provides a couple of different ways that you can quickly duplicate drawing objects in a worksheet. Committing these ...

Discover More

Setting Default Options for Track Changes

The Track changes feature in Word is a great help in editing documents, particularly if you are working with others or ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More ExcelTips (ribbon)

Specifying an Order for Page Printing

If a printout of your worksheet requires multiple pages, you may want to specify the order in which Excel prints those ...

Discover More

Changing Cell Values while Printing

When printing mulitiple copies of the same worksheet, you may have a need to change something simple for each of the ...

Discover More

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
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 5 + 2?

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.