Selection.InsertStyleSeparator Method
Word Developer Reference |
Inserts a special hidden paragraph mark that allows Microsoft Word to join paragraphs formatted using different paragraph styles, so lead-in headings can be inserted into a table of contents.
Syntax
expression.InsertStyleSeparator
expression Required. A variable that represents a Selection object.
Example
This example inserts a style separator after every paragraph formatted with the built-in "Heading 4" style.
Note |
---|
The paragraph count is inside the Do...Loop because when Word inserts the style separator, the two paragraphs become one paragraph, so the paragraph count for the document changes as the procedure runs. |
Visual Basic for Applications |
---|
|
See Also