KeyName Function

Syntax:

KeyName(Key)

Group:

Miscellaneous

Description: Returns the key name for a key number. This is the name used by SendKeys.

Parameters:

Parameter

Description

Key

Key number.

Example:

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

 

See Also:

SendKeys.