KeyBinding.Clear Method

Word Developer Reference

Removes the specified key binding from the KeyBindings collection and resets a built-in command to its default key assignment.

Syntax

expression.Clear

expression   A variable that represents a KeyBinding object.

Example
This example removes the ALT+F1 key assignment from the Normal template.

Visual Basic for Applications
  CustomizationContext = NormalTemplateFindKey(BuildKeyCode(Arg1:=wdKeyAlt, Arg2:=wdKeyF1)).Clear

See Also