Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. 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: Setting Default Print Margins.

Setting Default Print Margins

Written by Allen Wyatt (last updated January 25, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365


3

When you first start Excel, the blank workbook that is opened has specific default values set. One of those defaults is the page margins, used when you print the worksheet. If you want to change the default page margins, you can do so by following these steps:

  1. Open a new Excel workbook.
  2. Change the page margins for all the worksheets in the workbook. Make sure they reflect the page margins you want used as your default.
  3. Make any other desired "default" changes in the workbook. This may include (but not be limited to) headers, footers, and the like.
  4. Choose Save As from the File menu. Excel displays the Save As dialog box.
  5. In the Save As Type pull-down list at the bottom of the dialog box, select Excel Template or Excel Macro-Enabled Template. (The option you select depends on whether you have macros in the workbook or not.)
  6. The file name you use should be Book.xltx or Book.xltm (depending, again, on whether it contains macros).
  7. Save your newly created template in the XLStart folder. (Do not save it in the default template folder.)

That's it. Now, any time you create a new workbook, Excel uses your template (Book.xltx or Book.xltm) as its model for what you want.

If you are unsure of where the XLStart folder is located (step 7), use Windows to search for the folder. Its exact location can vary depending on how Excel was installed on your machine, as well as the version you are using. You should note that if you are using Excel in a networked environment, you may not have the proper permissions to modify or save anything in the XLStart folder on the server. In that case, you should talk to your network administrator to see if you can save your workbook in the proper place.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (7011) applies to Microsoft Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365. You can find a version of this tip for the older menu interface of Excel here: Setting Default Print Margins.

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

Displaying Actual Font Faces

Want to see font samples as you contemplate which fonts to use in your document? Word provides an easy way to do this.

Discover More

Cell Address of a Maximum Value

Finding the maximum value in a range of cells is easy; finding the address of the cell containing that value is a ...

Discover More

Applying Borders to Tables

Want to change the borders that Word adds to your tables? You have complete control over the way your borders appear, ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More ExcelTips (ribbon)

Printing a Draft of a Worksheet

Want to print out the fastest possible copy of your worksheet? You do so by printing a draft, discussed in this tip.

Discover More

Printing Selected Worksheets

When you accumulate quite a few workbooks in a folder, you might need to print out selected worksheets from all of the ...

Discover More

Creating a Multi-Worksheet Report

It is not uncommon to use Excel to print out regular reports. If your report needs to span multiple worksheets, here's ...

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}] (all 7 characters, in the sequence shown) 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 7 + 0?

2023-01-27 10:25:16

Tomek

Rochelle,
If you cannot run macros, you can easily change margins from Page Layout tab in the ribbon, by clicking on Margins icon. This will give you several options (Normal, Wide, Narrow). if none of this suits you, set your custom margins (last option), This setting is then remembered as Last Custom Settings until you change it again, even if you close Excel.


2023-01-26 17:35:33

Tomek

Hi Rochelle.
There may be an option for that within quickbooks, Otherwise, as the margins are set as a property of a particular sheet and saved within the Workbook, when you open a workbook generated by someone else or by some program, the margins will be what was set in that workbook. Other than changing margins manually, you can just run a simple macro that will change the margins for you. Such macro should be placed in your Personal Macro Workbook to be always available (look in other tips or on internet if you need help on how to do it, or drop me a line).

Here is an example macro (change the values for margin sizes as needed):

Sub SetMargins()
    Application.PrintCommunication = False
    With ActiveSheet.PageSetup
        .LeftMargin = Application.InchesToPoints(0.5)
        .RightMargin = Application.InchesToPoints(0.5)
        .TopMargin = Application.InchesToPoints(0.75)
        .BottomMargin = Application.InchesToPoints(1)
        .HeaderMargin = Application.InchesToPoints(0.5)
        .FooterMargin = Application.InchesToPoints(0.5)
    End With
    Application.PrintCommunication = True
End Sub
-------------------------------
PS: Sometimes macros in Personal Macro Workbook are not available (visible) from within other workbooks. If you encounter this problem, post another comment asking for help on this.


2023-01-25 18:27:09

rochelle

Hi!
90% of the workbooks generated at my work come from quickbooks.
Is there a way to set margins and font's etc... when quickbooks desktop generates the reports?
Thanks!


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.