Options.AutoFormatAsYouTypeDefineStyles property (Word)
True if Word automatically creates new styles based on manual formatting. Read/write Boolean.
Syntax
expression. AutoFormatAsYouTypeDefineStyles
expression A variable that represents an Options object.
Example
This example sets Word to automatically create styles as you type.
Options.AutoFormatAsYouTypeDefineStyles = True
This example returns the status of the Define styles based on your formatting option on the AutoFormat As You Type tab in the AutoCorrect dialog box (Tools menu).
Dim blnAutoFormat as Boolean
blnAutoFormat = Options.AutoFormatAsYouTypeDefineStyles
See also
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.