Written by Allen Wyatt (last updated January 25, 2023)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, and Excel in Microsoft 365
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:
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.
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!
Sometimes it is just easier to use the keyboard than it is to use the mouse. If you are a keyboard-oriented person, you ...
Discover MoreWhen printing copies of a worksheet, it is sometimes helpful to have an actual copy number in one of the cells printed. ...
Discover MoreNeed to access the advanced capabilities of a printer from within an Excel macro? You may be out of luck, unless you ...
Discover MoreFREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
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
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!
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.
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2023 Sharon Parq Associates, Inc.
Comments