Occurs whenever the user presses a key on the keyboard. If the user holds the key down, this event repeats itself at the key-repeat interval that has been set on the user’s computer. Keyboard events occur in the following order: KeyDown, KeyPress, KeyUp.
Syntax
Private Sub Object_KeyDown(EventInfo)
EventInfo The SpreadsheetEventInfo or WCChartEventInfo object that contains information about the event.
Remarks
For information about using events with VBScript, see Declaring and Using Event Procedures in VBScript.