Paragraphs.OutlineLevel property (Word)

Returns or sets the outline level for the specified paragraphs. Read/write WdOutlineLevel.

Syntax

expression.OutlineLevel

expression Required. A variable that represents a 'Paragraphs' collection.

Remarks

If a paragraph has a heading style applied to it (Heading 1 through Heading 9), the outline level is the same as the heading style and cannot be changed. Outline levels are visible only in outline view or the document map pane.

Example

This example returns the outline level of all paragraphs in the active document.

temp = ActiveDocument.Paragraphs.OutlineLevel

See also

Paragraphs Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.