Excel: How to Access Custom Templates with NEW() FunctionLast reviewed: November 4, 1994Article ID: Q93537 |
The information in this article applies to:
SUMMARYIn Microsoft Excel, you can use the NEW() function in a macro to create a new document or open a template. To use NEW() to open a template, your template must appear in the New dialog box that is displayed when you choose New from the file menu. NOTE: To have your template available in the New dialog box, see "Displaying Your Template in the New Dialog Box" in the More Information section of this article. When you use NEW() to open a template, include the template name in quotation marks as the type_num argument, as in the following example
=NEW("MyTmp")where MyTmp is the name of your document template. NOTE: Do not include the .XLT extension in the filename when using Microsoft Excel for Windows.
MORE INFORMATION
Displaying Your Template in the New Dialog BoxWhen you choose New from the File menu, a dialog box is displayed that contains a list of document types and templates. To include your custom templates in the New document list, place your template in the Microsoft Excel startup folder or directory:
REFERENCES"Microsoft Excel User's Guide 1," version 4.0, pages 79-83 "Microsoft Excel User's Guide", version 3.0 for Macintosh, pages 549-550 "Microsoft Excel User's Guide", version 3.0 for Windows, pages 553-554 "Microsoft Excel Function Reference," version 4.0, pages 285-286 "Microsoft Excel Function Reference," version 3.0, page 159
|
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |