Options.AutoFormatReplacePlainTextEmphasis Property

Word Developer Reference

True if manual emphasis characters are replaced with character formatting when Word formats a document or range automatically. For example, "*bold*" is changed to "bold" and "_underline_" is changed to "underline." Read/write Boolean.

Syntax

expression.AutoFormatReplacePlainTextEmphasis

expression   A variable that represents an Options object.

Example

This example turns on the replacement of manual emphasis characters with character formatting

Visual Basic for Applications
  Options.AutoFormatReplacePlainTextEmphasis = True
Selection.Range.AutoFormat

This example returns the status of the *Bold* and _underline_ with real formatting option on the AutoFormat tab in the AutoCorrect dialog box (Tools menu).

Visual Basic for Applications
  Dim blnAutoFormat as Boolean

blnAutoFormat = Options.AutoFormatReplacePlainTextEmphasis

See Also