KeyBinding Object
Multiple objects KeyBinding |
Represents a custom key assignment in the current context. The KeyBinding object is a member of the KeyBindings collection. Custom key assignments are made in the Customize Keyboard dialog box.
Using the KeyBinding Object
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.
Properties | Application Property | Command Property | CommandParameter Property | Context Property | Creator Property | KeyCategory Property | KeyCode Property | KeyCode2 Property | KeyString Property | Parent Property | Protected Property
Methods | Clear Method | Disable Method | Execute Method | Rebind Method
Parent Objects | Application Object | Global Object
Child Objects
See Also | KeysBoundTo Collection Object