KeyBindings Collection Object
Office 2007
| Word Developer Reference |
Remarks
Use the KeyBindings property to return the KeyBindings collection. The following example inserts after the selection the command name and key combination for each item in the KeyBindings collection.
| Visual Basic for Applications |
|---|
|
Use the Add method to add a KeyBinding object to the KeyBindings collection. The following example adds the CTRL+ALT+H key combination to the Heading 1 style in the active document.
| Visual Basic for Applications |
|---|
|
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.
| Visual Basic for Applications |
|---|
|