Global.KeysBoundTo Property
Word Developer Reference |
Returns a KeysBoundTo object that represents all the key combinations assigned to the specified item.
Syntax
expression.KeysBoundTo(KeyCategory, Command, CommandParameter)
expression A variable that represents a Global object. Optional.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
KeyCategory | Required | WdKeyCategory | The category of the key combination. |
Command | Required | String | The name of the command. |
CommandParameter | Optional | Variant | Additional text, if any, required for the command specified by Command. For more information, see the "Remarks" section in the Add method for the KeyBindings object. |
Example
This example displays all the key combinations assigned to the FileOpen command in the template attached to the active document.
Visual Basic for Applications |
---|
|
This example removes all key assignments from Macro1 in the Normal template.
Visual Basic for Applications |
---|
|
See Also