Document.UpdateStyles Method
Word Developer Reference |
Copies all styles from the attached template into the document, overwriting any existing styles in the document that have the same name.
Syntax
expression.UpdateStyles
expression Required. A variable that represents a Document object.
Example
This example copies the styles from the attached template into each open document, and then it closes each document.
Visual Basic for Applications |
---|
|
This example changes the formatting of the Heading 1 style in the template attached to the active document. The UpdateStyles method updates the styles in the active document, including the Heading 1 style.
Visual Basic for Applications |
---|
|
See Also