Key Method

See Also         Example         Applies To

Returns a KeyBinding object that represents the specified custom key combination. If the key combination doesn't exist, this method returns Nothing.

Syntax

expression.Key(KeyCode, KeyCode2)

expression   Required. An expression that returns a KeyBindings or KeysBoundTo object.

KeyCode   Required Long. A key you specify by using one of the WdKey constants.

KeyCode2   Optional Variant. A second key you specify by using one of the WdKey constants.

Remarks

You can use the BuildKeyCode method to create the KeyCode or KeyCode2 argument.