Document.AttachedTemplate Property
Word Developer Reference |
Returns a Template object that represents the template attached to the specified document. Read/write Variant.
Syntax
expression.AttachedTemplate
expression A variable that represents a Document object.
Remarks
To set this property, specify either the name of the template or an expression that returns a Template object.
Example
This example displays the name and path of the template attached to the active document.
Visual Basic for Applications |
---|
|
This example inserts the contents of the Spike (a built-in AutoText entry) at the beginning of document one.
Visual Basic for Applications |
---|
|
This example attaches the template "Letter.dot" to the active document.
Visual Basic for Applications |
---|
|
See Also