XL: Multiple Sheets Inserted with Autotemplate

Last reviewed: February 2, 1998
Article ID: Q107545
The information in this article applies to:
  • Microsoft Excel for Windows, versions 5.0, 5.0c
  • Microsoft Excel for the Macintosh, versions 5.0, 5.0a
  • Microsoft Excel for Windows NT, version 5.0
  • Microsoft Excel for Windows 95, versions 7.0, 7.0a
  • Microsoft Excel 97 for Windows
  • Microsoft Excel 98 Macintosh Edition

SUMMARY

In Microsoft Excel, when you save a file as an autotemplate, all of the sheets in the file, not just the first sheet, are saved in the autotemplate. As a result, if you insert the autotemplate into an open workbook, more than one sheet may be inserted.

To work around this behavior, remove all sheets but one before you save the autotemplate.

MORE INFORMATION

Microsoft Excel 97 and Microsoft Excel 98 Macintosh Edition

In Microsoft Excel, you can create a special type of file called an autotemplate. Autotemplates are template files that you save in either of the following folders:

  • Program Files\Microsoft Office\Templates
  • Microsoft Office: Templates (on a Macintosh computer)

In addition, when you save autotemplates, click Save As on the File menu, click Template in the Save As Type list, and use the names that are listed in the following table.

                        Save file in
   Sheet type           templates folder as
   -----------------------------------------

   Worksheet            Worksheet
   Chart                Chart
   Dialog               MS Excel 5.0 Dialog
   MS Excel 4.0 Macro   MS Excel 4.0 Macro

To insert an autotemplate sheet into your workbook, right-click any sheet tab in your workbook, and then click Insert on the shortcut menu. Then, double-click the appropriate desired autotemplate in the Insert dialog box.

NOTE: If you click Worksheet on the Insert menu, you will not have the worksheet template mentioned above inserted into your workbook; a generic default worksheet will be inserted into your workbook. If you save a workbook, with a single worksheet, as a template file called "Sheet" in the Program Files\Microsoft Office\Office\Xlstart folder, this template worksheet will be inserted into your workbook when you click Worksheet on the Insert menu.

Microsoft Excel Versions 5.0 and 7.0

In Microsoft Excel, you can create a special type of file called an autotemplate. Autotemplates are template files that you save in the Excel\Xlstart directory with the names that are listed in the following table.

                        Save file in startup
   Sheet type           directory as
   -----------------------------------------

   Worksheet            Sheet.xlt
   Chart                Chart.xlt
   Module               Module.xlt
   Dialog               Dialog.xlt
   MS Excel 4.0 Macro   Macro.xlt

Microsoft Excel for the Macintosh, version 5.0

In Microsoft Excel for the Macintosh, the files are saved in the

'System Folder:Preferences:Excel Startup Folder (5)' folder with the
names that are listed in the following table.

                        Save file in startup
   Sheet type           directory as
   -----------------------------------------

   Worksheet            Worksheet
   Chart                Chart
   MS Excel 4.0 Macro   Macro
   Module               Module
   Dialog               Dialog

For more information on replacing the default module with an autotemplate, query on the following words in the Microsoft Knowledge Base:

   replace and default and module and autotemplate

To save a file as an autotemplate, follow these steps:

  1. On the File menu, click Save As.

  2. In the Save As dialog box, under Save File As Type, select Template.

  3. In the Directories list box, switch to the appropriate folder or directory, as described above.

  4. Type the appropriate file name from the list above into the File Name box.

  5. Click OK to save the autotemplate.

  6. On the File menu, click Close to close the autotemplate file.

When you create an autotemplate, the autotemplate is used in place of the default sheet when you insert a sheet into a workbook. This allows you to create custom default settings for all of the sheets that you use.

REFERENCES

"User's Guide," version 5.0, pages 657-658


Additional query words: 5.00 5.00a 5.00c 7.00 7.00a 97 98 XL98 XL97 XL7 XL5
Version : WINDOWS:5.0,5.0c,7.0,97; MACINTOSH:5.0,5.0a,98
Platform : MACINTOSH WINDOWS


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: February 2, 1998
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.