OutlineDemote Method

Microsoft Word Visual Basic

OutlineDemote Method

       

Applies the next heading level style (Heading 1 through Heading 8) to the specified paragraph or paragraphs. For example, if a paragraph is formatted with the Heading 2 style, this method demotes the paragraph by changing the style to Heading 3.

expression.OutlineDemote

expression   Required. An expression that returns a Paragraph or Paragraphs object.

Example

This example demotes the selected paragraphs.

Selection.Paragraphs.OutlineDemote

This example demotes the third paragraph in the active document.

ActiveDocument.Paragraphs(3).OutlineDemote