Compartilhar via


AutoCorrect.CorrectKeyboardSetting Property

Word Developer Reference

True if Microsoft Word automatically transposes words to their native alphabet if you type text in a language other than the current keyboard language. Read/write Boolean.

Syntax

expression.CorrectKeyboardSetting

expression   An expression that returns an AutoCorrect object.

Remarks

The CheckLanguage property must be set to True to use the CorrectKeyboardSetting property.

Example

This example displays a dialog box where the user can choose whether or not Word automatically transposes foreign words to their native alphabets.

Visual Basic for Applications
  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

See Also