Protected Property

Applies To

KeyBinding object.

Description

True if you cannot change the specified key binding in the Customize Keyboard dialog box (Tools menu). Read-only Boolean.

Note The Add method of the KeyBindings object adds a key binding regardless of the protected status.

See Also

FindKey property.

Example

This example displays the protection status for the CTRL+S key binding.

CustomizationContext = ActiveDocument.AttachedTemplate
MsgBox FindKey(BuildKeyCode(wdKeyControl, wdKeyS)).Protected
This example displays a message if the A key binding is protected.

CustomizationContext = NormalTemplate
If FindKey(BuildKeyCode(wdKeyA)).Protected = True Then
    MsgBox "The A key is protected"
End If