OlkCategory.KeyDown event (Outlook)
Occurs when a user presses a key.
Syntax
expression. KeyDown
( _KeyCode_
, _Shift_
)
expression A variable that represents an OlkCategory object.
Parameters
Name | Required/Optional | Data type | Description |
---|---|---|---|
KeyCode | Required | Long | The numerical value of the key pressed. |
Shift | Required | Integer | A bitwise-OR mask of constants in the OlShiftState enumeration that specifies whether the SHIFT, CTRL, or ALT keys have been pressed. |
Remarks
The state of the modifier keys (SHIFT, CTRL, or ALT) that are pressed during the KeyDown event is accessible through the Shift parameter.
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.