Excel: How to Access Custom Templates with NEW() Function

ID: Q93537


The information in this article applies to:


SUMMARY

In 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 Box

When 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:

NOTE: You can also specify an additional startup folder or directory using the Alternate Startup add-in macro. For information on specifying an additional startup folder or directory, see page 80 of the version 4.0 "Microsoft Excel User's Guide 1."


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

Additional query words: 4.00a chart


Keywords          : 
Version           : 
Platform          : 
Issue type        : 

Last Reviewed: March 30, 1999