AutoFormatMatchParentheses Property Example

This example sets Microsoft Word to automatically correct pairs of parentheses, and then it formats the current selection.

Options.AutoFormatMatchParentheses = True
Selection.Range.AutoFormat