FileTemplates

Syntax

FileTemplates [.Template = text] [, .LinkStyles = number]

Remarks

Changes the template attached to the active document. To add or remove global templates, use AddAddIn, AddInState, and DeleteAddIn. The arguments for the FileTemplate statement correspond to the options in the Templates And Add-ins dialog box (Templates command, File menu).

Argument

Explanation

.Template

The path and filename of the template to attach.

.LinkStyles

If 1, styles in the active document are linked to the active template; Word copies styles from the attached template each time the document is opened.


If you choose Templates from the File menu while recording a macro, Word records the .Store argument in the FileTemplates statement. This argument is recognized for backward compatibility with Word version 2.x macros. In Word version 6.0 or later, the .Store argument is ignored.

See Also

AddAddIn, AddInState, DeleteAddIn, FileNew, Organizer