KeyName Function

Syntax

KeyName(Key)

Group

Miscellaneous

Description

Return the key name for a key number. This is the name used by SendKeys.

Parameters

Parameters Description
Key Key number.

Example


Sub Main
    Debug.Print KeyName(&H270)  '"^{F1}"
End Sub

See also

SendKeys