Edit

Share via


KeyBinding.Clear method (Word)

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.

CustomizationContext = NormalTemplateFindKey(BuildKeyCode(Arg1:=wdKeyAlt, Arg2:=wdKeyF1)).Clear

See also

KeyBinding Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.