Excel.Tips.Net Welcome toExcel.Tips.Net

Helpful Links

Tips.Net Home
ExcelTips Home
Ask an Excel Question
Make a Comment

Tips.Net Store

ExcelTips FAQ
ExcelTips Premium

Learn Access Now
Free Printable Forms

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Wedding Tips
Word2007 Tips
WordTips

Advertise on the
ExcelTips Site

Newest Tips

Recording a Macro

Adding a Little Animation to Your Life

Converting a Range of URLs to Hyperlinks

Making the Formula Bar Persistent

Engineering Calculations

Digital Signatures for Macros

Fixing the Decimal Point

 

Printing an Entire Workbook by Default

Summary: Need to print an entire workbook? It's as easy as adding a single line of code to your macros. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)

When you choose to print in Excel, the Print dialog box has controls that allow you to specify many things about the print job. The controls in the Print What area of the dialog box allow you to indicate whether you want to print the selected worksheets, the selection, or the entire workbook. The option in the Print What area 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 in the Print What area 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 a toolbar and assign this macro to that button. When you want to print the entire workbook, just click on the button. Easy and quick.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (2001) applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003 | 2007

Don't Go in Debt for Christmas! Tired of trying to keep up with the Joneses for Christmas? Want to enjoy the season rather than dread the aftermath? Learn how you can avoid the financial traps that spring up every Christmas.
 
Check out Top Fifteen Tips for Financing Christmas today!