如果该属性值为 True,则在键入非当前键盘语言的文字时,Microsoft Word 会自动将这些单词转置为其母语字母。Boolean 类型,可读写。
expression.CorrectKeyboardSetting
expression 必需。该表达式返回一个 AutoCorrect 对象。
CheckLanguage 属性必须为 True,才可使用 CorrectKeyboardSetting 属性。
有关在 Word 中使用多种语言的详细信息,请参阅多语言文字和自动语言检测疑难解答。
本示例显示一个对话框,以便用户选择 Word 是否自动将外文单词转置为其母语字母。
x = MsgBox("Do you want Microsoft Word to tranpose " _
& "foreign words to their native alphabet?", _
vbYesNo)
If x = vbYes Then
Application.CheckLanguage = True
AutoCorrect.CorrectKeyboardSetting = True
MsgBox "Automatic keyboard correction enabled!"
End If