title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
Global.KeyString method (Word) |
vbawd10.chm163119421 |
|
|
4ad72e74-d26d-093e-8404-b3dc10ebe1f0 |
06/08/2017 |
medium |
Returns the key combination string for the specified keys (for example, CTRL+SHIFT+A).
expression. KeyString
( _KeyCode_
, _KeyCode2_
)
expression A variable that represents a 'Global' object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
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. |
String
Use the BuildKeyCode method to create the KeyCode or KeyCode2 argument.
This example displays the key combination string (CTRL+SHIFT+A) for the following WdKey constants: wdKeyControl, wdKeyShift, and wdKeyA.
CustomizationContext = ActiveDocument.AttachedTemplate
MsgBox KeyString(KeyCode:=BuildKeyCode(wdKeyControl, _
wdKeyShift, wdKeyA))
[!includeSupport and feedback]