KeyBinding Object
TOC
Collapse the table of content
Expand the table of content

KeyBinding Object (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents a custom key assignment in the current context. The KeyBinding object is a member of the KeyBindings collection.

Use KeyBindings(Index), where Index is the index number, to return a single KeyBinding object. The following example displays the command associated with the first KeyBinding object in the KeyBindings collection.

MsgBox KeyBindings(1).Command

You can also use the FindKey property and the Key method to return a KeyBinding object.

Note Note

Custom key assignments are made in the Customize Keyboard dialog box.

Show:
© 2016 Microsoft