Object: KeyBinding Object
Access: Read-Only
Returns the ID of command associated with the keybinding object. (key-in command returns -1)
KeyBinding.Id
None.
A long that represents the ID of the command associated with the keybinding object.
' 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
' Id property will return 33818, which is the internal command id.
MsgBox docKeyBindings.Item(1).Id