Options.AutoFormatAsYouTypeApplyHeadings Property

Word Developer Reference

True if styles are automatically applied to headings as you type. Read/write Boolean.

Syntax

expression.AutoFormatAsYouTypeApplyHeadings

expression   A variable that represents an Options collection.

Example

This example sets Word to automatically apply the Heading1 through Heading 9 styles to headings as you type.

Visual Basic for Applications
  Options.AutoFormatAsYouTypeApplyHeadings = True

This example returns the status of the Headings option on the AutoFormat As You Type tab in the AutoCorrect dialog box (Tools menu).

Visual Basic for Applications
  Dim blnAutoFormat as Boolean

blnAutoFormat = Options.AutoFormatAsYouTypeApplyHeadings

See Also