Command Property (KeyBinding Object)

Object: KeyBinding Object

Access: Read-Only

Returns the menu command or key-in command associated with the keybinding object.

Usage

KeyBinding.Command

Arguments

None.

Return Values

A string that represents the menu command or key-in command.

Examples

' With BindingTables object defined 
' Assign shortcut keys Alt+F1 to Help->Contents->Automation 
docBindingTables.AddKeyBinding "Alt+F1","Help->Contents->Automation",0,1 
 
' With KeyBindings object defined 
' Command property will return "Help->Contents->Automation" 
MsgBox docKeyBindings.Item(1).Command