Id Property (KeyBinding Object)

Object: KeyBinding Object

Access: Read-Only

Returns the ID of command associated with the keybinding object. (key-in command returns -1)

Usage

KeyBinding.Id

Arguments

None.

Return Values

A long that represents the ID of the command associated with the keybinding object.

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 
' Id property will return 33818, which is the internal command id. 
MsgBox docKeyBindings.Item(1).Id