AutoFormatAsYouTypeReplaceQuotes Property

Microsoft Word Visual Basic

AutoFormatAsYouTypeReplaceQuotes Property

       

True if straight quotation marks are automatically changed to smart (curly) quotation marks as you type. Read/write Boolean.

Example

This example turns on the automatic replacement of straight quotation marks with smart (curly) quotation marks as you type.

Options.AutoFormatAsYouTypeReplaceQuotes = True

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

Dim blnAutoFormat as Boolean

blnAutoFormat = Options.AutoFormatReplaceQuotes