Global.BuildKeyCode Method
Word Developer Reference |
Returns a unique number for the specified key combination.
Syntax
expression.BuildKeyCode(Arg1, Arg2, Arg3, Arg4)
expression A variable that represents a Global object. Optional.
Parameters
Name | Required/Optional | Data Type | Description |
---|---|---|---|
Arg1 | Required | WdKey | A key you specify by using one of the WdKey constants. |
Arg2 | Optional | WdKey | A key you specify by using one of the WdKey constants. |
Arg3 | Optional | WdKey | A key you specify by using one of the WdKey constants. |
Arg4 | Optional | WdKey | A key you specify by using one of the WdKey constants. |
Example
This example assigns the ALT + F1 key combination to the Organizer command.
Visual Basic for Applications |
---|
|
This example removes the ALT+F1 key assignment from the Normal template.
Visual Basic for Applications |
---|
|
This example displays the command assigned to the F1 key.
Visual Basic for Applications |
---|
|
See Also