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

Creating Default Formatting for Workbooks and Worksheets

Written by Allen Wyatt (last updated December 10, 2022)
This tip applies to Excel 2007, 2010, 2013, 2016, 2019, Excel in Microsoft 365, and 2021


2

Mark notes that Excel starts with a workbook that is formatted with a column width of 8.43 and general number formatting. He would like it to start with a workbook that has a column width of 25 for the first column, 12 for the remaining columns, and number format with 2 decimals and a comma between thousands. He would also like any sheets added to the workbook to have the same formatting. He wonders how to get Excel to recognize these default workbooks and worksheets.

The solution is to create two special templates in Excel. One template controls the default appearance for workbooks and the other controls the default appearance for worksheets. Basically all you need to do is open a brand new, blank workbook. Format it as you would like your default workbook to appear. (You can even create a different appearance for each worksheet in the workbook, if desired.) When it appears exactly as you want, save it as a template. This means that in the Save As dialog box you should change the Save As Type setting to a template. Also, you need to save the template in this folder:

C:\Program Files\Microsoft Office\OFFICE14\XLSTART

The path can vary, depending on which version of Office you are using. The above example is for Office 2010; just change the OFFICE14 text to OFFICE12 if you are using Office 2007, or in Office 2016 you'll need to go into the root folder and find Office16. If you are in doubt of where the folder is located on your system, use Windows' searching capabilities to locate the folder.

The actual name you give to your template is important—it needs to be book.xltx or, if your template includes macros, book.xltm. As far as Excel is concerned, a template named book.xltx or book.xltm, stored in the XLSTART folder, is to be used as the default for all new workbooks—just want you want.

Next, delete all the worksheets in the workbook except one. This one will be used as the default "blank worksheet" when adding worksheets (by pressing Ctrl+N) into an open workbook. Format it the way you want, and then press F12 to display the Save As dialog box. Again, save it as a template, but this time give it the name sheet.xltx. Store it in the same XLSTART folder you used for the previous template.

I should note that it is possible that when you try to save directly from Excel into the XLSTART folder, Windows could stop you. You may get a message stating that you don't have permission to save in the folder, or you might see one telling you to contact your administrator. If this occurs, simply save the workbooks to your desktop, get out of Excel, and then use File Explorer to move the workbooks to the XLSTART folder. If Windows still insists on admin permission to copy the files, you'll need to provide the password for a system user that has admin permissions.

Now, restart Excel and you should be all set. In fact, once you restart, you should notice that the blank workbook opened by default should match what you saved in the book.xltx template.

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

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

Exporting Black and White Charts

Excel's charts are normally created in color, but you can print them in black and white. You may be looking for a way to ...

Discover More

Engineering Calculations

Need to normalize your data in some way so that all your values are in a given format? This tip presents a number of ...

Discover More

Adding a Calendar to a Worksheet

Using a specialized calendar control is a great way to let users add dates to a worksheet. Unfortuantely, Microsoft ...

Discover More

Save Time and Supercharge Excel! Automate virtually any routine task and save yourself hours, days, maybe even weeks. Then, learn how to make Excel do things you thought were simply impossible! Mastering advanced Excel macros has never been easier. Check out Excel 2010 VBA and Macros today!

More ExcelTips (ribbon)

Opening Two Workbooks with the Same Name

If you have two workbooks that each have the same name, opening them at the same time in Excel could cause some problems. ...

Discover More

Problems with Default Workbook and Worksheet Templates

You can create a default template for both your workbooks and worksheets. These should be placed in the XLSTART folder, ...

Discover More

Sharing Your Workbook

Need to allow others to contribute to your Excel workbook? It's easy to do if you just share it. This tip provides an ...

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

2022-12-12 10:51:07

J. Woolley

@Walter Szymanski
I'm using Windows 10 Excel 365 (64-bit). Under Excel's Options > General > "Start up options" I have "Show the start screen when this application starts" checked; therefore, my configuration does not open a new blank workbook each time Excel starts.
I followed the Tip's instructions for book.xltx and sheet.xltx, setting the worksheet's Zoom to 115% in each case. When I start Excel and pick "New blank workbook" from the start screen (or from the File menu) my book.xltx template is ignored, but when I add a new worksheet by clicking the "New sheet" button (or pressing Shift+F11) the sheet.xltx template is applied. Apparently the book.xltx template is applied only when I use Ctrl+N to add a new workbook. (By the way, the Tip incorrectly describes Ctrl+N as the shortcut to add a new worksheet.) If I uncheck "Show the start screen when this application starts," then the book.xltx template is applied to open a new workbook each time I start Excel. When either template is applied, the worksheet's Zoom is 115% as intended.
These results are realized if the template files are added to either of the following folders:
C:\Program Files\Microsoft Office\root\Office16\XLSTART
C:\Users\<username>\AppData\Roaming\Microsoft\Excel\XLSTART
I believe the latter folder is the preferred location for user startup files.
For more on this subject, see
https://trumpexcel.com/automatically-open-excel-file-startup/


2022-12-10 06:51:10

Walter Szymanski

Thanks, Allen, for these tips, which work perfectly for me except for one thing: these templates do not save the magnification I set for the workbook/sheet.

In other words, I'd like my workbooks/sheets to open at 115% magnification, but the templates I save won't do that for me. I don't expect there's a work around, but I thought I'd ask you anyway.

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.