Options.AutoFormatReplaceSymbols property (Word)
True if two consecutive hyphens (--) are replaced by an en dash (-) or an em dash (—) when Word formats a document or range automatically. Read/write Boolean.
Syntax
expression. AutoFormatReplaceSymbols
expression A variable that represents an Options object.
Example
This example turns on the replacement of hyphens with symbols, and then it formats the current selection automatically.
Options.AutoFormatReplaceSymbols = True
Selection.Range.AutoFormat
This example returns the status of the Symbol characters (--) with symbols (—) option on the AutoFormat tab in the AutoCorrect dialog box (Tools menu).
Dim blnAutoFormat as Boolean
blnAutoFormat = Options.AutoFormatReplaceSymbols
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.