ToggleKeyboard Method

Microsoft Word Visual Basic

ToggleKeyboard Method

       

Switches the keyboard language setting between right-to-left and left-to-right languages.

expression.ToggleKeyboard

expression   Required. An expression that returns an Application object.

Remarks

For more information on using Microsoft Word with right-to-left languages, see Word features for right-to-left languages.

Example

This example asks the user whether to switch the keyboard language setting between right-to-left and left-to-right languages.

x = MsgBox("Switch the keyboard language setting?", vbYesNo)
If x = vbYes Then Application.ToggleKeyboard