Template

The TEMPLATE field displays the name of the Word template attached to the current file, using the Windows long filename; default setting does not include a file extension. Adding the \p switch adds the file system path (network location, drive, and folder), as well as the file extension.

Syntax

{ TEMPLATE [Switches] }

Switches

TEMPLATE supports capitalization formatting switches (see the section earlier in this chapter, "Capitalization Formatting Switches").

Examples

The following field displays the template name, including path and file extension, in lowercase:

{ FILENAME \p \* Lower }

→ For more information about working with templates, see Chapter 7, "Templates, Wizards, and Add-Ins".

Get Special Edition Using Microsoft® Word 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.