Options.AutoKeyboardSwitching Property

Word Developer Reference

True if Microsoft Word automatically switches the keyboard language to match what you’re typing at any given time. Read/write Boolean.

Syntax

expression.AutoKeyboardSwitching

expression   A variable that represents an Options object.

Remarks

To use this property, you must have the CheckLanguage property set to True.

Example

This example asks the user to choose whether or not to enable automatic keyboard switching for multilingual documents.

Visual Basic for Applications
  x = MsgBox("Enable automatic keyboard switching?", vbYesNo)
If x = vbYes Then
    Application.CheckLanguage = True
    Options.AutoKeyboardSwitching = True
    MsgBox "Automatic keyboard switching enabled!"
End If

See Also