How to set a default template in Excel - Ebooks Amazon Free

Trang

15 July, 2020

How to set a default template in Excel

How to set a default template in Excel

Do you find yourself creating new workbooks in Excel, then making the same changes to every one? Maybe you like to change font size, zoom percent, or the default row height?
If so, you can save yourself time and trouble by setting a default template for Excel to use each time you create a new workbook. As long as you name the template correctly, and put it in the correct location, Excel will use your custom template to create all new workbooks.
Note: biggest challenge with this tip is figuring out the right location for the template file. This can be maddeningly complex, depending on which platform and version of Excel you use. If you get frustrated and can't make things work, you can set your own startup folder manually, as described below.

Settings that can be saved in a template

A template can hold many custom options. Here are a few examples of settings that can saved in a workbook template:
  • Font formatting and styles
  • Display options and zoom settings
  • Page setup and print options
  • Column widths and row heights
  • Page formats and print area settings for each sheet
  • The number (and type) of sheets in new workbooks
  • Placeholder text (titles, column headers, etc.)
  • Data validation settings
  • Macros, hyperlinks and ActiveX controls
  • Workbook calculation options
Remember: these setting only apply to new workbooks created after a custom template file is installed.

The process

  1. Open a new blank workbook and customize the options as you like
  2. Save the workbook as an Excel template with the name "book" (Excel will add .xltx) **
  3. Move the template to the startup folder used by Excel
  4. Quit and relaunch Excel to be sure settings are fresh
  5. Test to be sure Excel is using the template when new workbooks are created
** Based on comments below, it seems the name of your workbook must be localized for your version of Excel. For example, if you're using the Czech version, you need to to use "Sešit" instead of "book".

Common startup folder locations

Whenever Excel is launched, it establishes what is called a "startup folder", which is named XLSTART. The key is to put your template file into this folder so that Excel will find it. Unfortunately, the exact location of XLSTART varies according the versions of Excel  and Windows you use. Here are some common locations:
C:\Program Files\Microsoft Office\OFFICEx\XLSTART
C:\Users\user\AppData\Microsoft\Excel\XLSTART
C:\Users\user\AppData\Roaming\Microsoft\Excel\XLSTART

Can't find XLSTART?

If you can't find the startup folder for excel (XLSTART), you can use the VBA editor to confirm Excel's start up path:
  1. Run Excel
  2. Open the VBA editor (Alt + F11)
  3. Open the immediate window (Control + G)
  4. Type: ? application.StartupPath in the window
  5. Press Enter
The startup path will appear below the command. Once you've confirmed the location of XLSTART, drop in your template file.
Use the VBA immediate window to confirm startup path

Set your own startup directory

If you can't find Excel's startup directory, or if burying your template deep in an application hierarchy just seems wrong, you can tell Excel to look in your own startup folder by setting an option as follows:
  1. Create a directory called "xlstart" where you like
  2. Put your custom template the new directory
  3. At Options > Advanced > General > Open all files in, enter the path to xlstart
  4. Test to make sure the template is working
You can set your own custom startup path in Advanced Options
Telling Excel about your own startup folder...make sure you use the correct path on your computer!

Test to make sure your template is being used

After you go through the steps to set up a default template, make sure you test to confirm your template is being used. One easy way to do this is to (temporarily) give cell A1 in your template a bright yellow or orange fill. That way, you can immediately see if your custom template is being used. Once you're sure things are working, remove the marker.
Fill color in A1 confirms that the custom template is being used

Setting a default Excel template on the Mac

The process for setting a default Excel template on a Mac is similar to the steps above for Windows. Again, confirming the startup folder can be tricky, depending on whether you have Excel 2011 or 2016 installed (2008 not tested). In Excel 2016, according to Microsoft, there is currently no startup folder.
Also, as of mid-2016, the name of the template should be "workbook" (manually remove the .xltx extension) not "book", as described in a this good article on Excelsemipro. (The location mentioned  in this article also seems to have changed in later 2011 versions).
Because of confusion around the startup folder, here's what I recommend on a Mac:
  1. Create a new directory in your home documents folder called "xlstart"
  2. Go to Preferences > General > At startup, open all files in, and set xlstart as path
  3. Open a new workbook and customize the options as you like
  4. Save the workbook as an Excel template with the name "workbook.xltx" inside xlstart
  5. Manually remove the extension ".xltx" so that the file is named only "workbook"
  6. Quit and relaunch Excel to be sure settings are updated
  7. Test to be sure Excel is using the template when new workbooks are created
I tested this with Excel 2011 and Excel 2016 installed on the same Mac in May 2016, and both used the same template as expected.
Note: Tested again in January 2020. Step #5 above (removing the extension) was not needed. Also, I was able to use 'book.xltx' for the filename, like the Windows version.

Template for new sheets

A workbook template controls the look and layout of sheets already in the workbook, but not new sheets. When you insert a new sheet,it will inherit Excel's sheet defaults. If you want control new sheets with your own template, follow the process below.
  1. Open a new blank workbook and delete all sheets except one
  2. Make desired customizations to the sheet
  3. Save as an Excel template named "sheet.xltx" to the location determined above **
  4. Close the file
** If using a non-English version of Excel, you may need to localize this name.
To test that the sheet template is working, open a workbook and add a new sheet. You should see your customizations all newly inserted sheets.
#evba #etipfree #eama #kingexcel
📤How to Download ebooks: https://www.evba.info/2020/02/instructions-for-downloading-documents.html?m=1

No comments:

Post a Comment

Recent Comments