EmailOptions.AutoFormatAsYouTypeReplaceSymbols property (Word)

True if two consecutive hyphens (--) are replaced with an en dash (-) or an em dash (—) as you type. Read/write Boolean.

Syntax

expression. AutoFormatAsYouTypeReplaceSymbols

expression A variable that represents an 'EmailOptions' collection.

Remarks

If the hyphens are typed with leading and trailing spaces, Word replaces the hyphens with an en dash; if there are no trailing spaces, the hyphens are replaced with an em dash.

Example

This example turns on the replacement of hyphens with symbols as you type.

EmailOptions.AutoFormatAsYouTypeReplaceSymbols = True

This example returns the status of the Symbol characters (--) with symbols (—) option on the AutoFormat As You Type tab in the AutoCorrect dialog box (Tools menu).

Dim blnAutoFormat as Boolean 
 
blnAutoFormat = EmailOptions.AutoFormatAsYouTypeReplaceSymbols

See also

EmailOptions Object

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.