Document.Styles Property
Word Developer Reference |
Returns a Styles collection for the specified document. Read-only.
Syntax
expression.Styles
expression A variable that represents a Document object.
Remarks
For information about returning a single member of a collection, see Returning an Object from a Collection.
Example
This example applies the Heading 1 style to each paragraph in the active document that begins with the word "Chapter."
Visual Basic for Applications |
---|
|
This example opens the template attached to the active document and modifies the Heading 1 style. The template is saved, and all styles in the active document are updated.
Visual Basic for Applications |
---|
|
See Also