
Tips.Net > ExcelTips Home > Printing > Page Setup > Changing Paper Size for a Complete Workbook
Summary: Do you need to change the type of paper used to print each worksheet in a workbook. There are two ways you can make a universal change, and the one you select depends on the complexity of your worksheet formatting. This tip describes both methods of making the change. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, and Excel 2003.)
Bob has a workbook that has about fifteen worksheets in it, and he needs to change the page format for all the worksheet from Letter to A4. There is a quick way to make the change by following these steps:
That's it; the paper size is now set for all the worksheets. There is a drawback to this approach, however: If individual worksheets have differing page setup settings (different orientations, margins, headers, footers, etc.), then following these steps will set them all the same. If you only want to change the paper size and don't want to change any other settings, your only recourse is to use a macro to do the change.
Sub AllSheetsA4()
Dim sht As Variant
For Each sht In ActiveWorkbook.Sheets
sht.PageSetup.PaperSize = xlPaperA4
Next
End Sub
The macro steps through each sheet in the workbook, changing only the PaperSize property so that the sheet will print on A4 paper.
Tip #2896 applies to Microsoft Excel versions: 97 2000 2002 2003
Save Time! ExcelTips has been published weekly since late 1998. Past issues of ExcelTips are available in convenient ExcelTips archives. Have your own enhanced archive of ExcelTips at your fingertips, available to use at any time!
Check out ExcelTips Archives today!
Have thousands of ExcelTips at your fingertips, on your own system. Answer your own questions or help support others. (more information...)
Ask an Excel Question
Make a Comment
ExcelTips FAQ
ExcelTips Premium
Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
Word2007 Tips
WordTips
Advertise on the
ExcelTips Site