如果为 True,Microsoft Word 会自动更正不正确成对的括号,可读写。
expression.AutoFormatAsYouTypeMatchParentheses
expression 必需。该表达式返回“应用于”列表中的一个对象。
有关中文“自动套用格式”选项的详细内容,请参阅在键入另一种语言时自动更正文本。
本示例设置 Microsoft Word 在用户键入时自动更正不正确成对的括号。
Sub AutoMatchParentheses()
Options.AutoFormatAsYouTypeMatchParentheses = True
End Sub