I am using the KeyDown event and am trying to determine if the key pressed is any kind of character or number (as opposed to keys like Tab, Ctrl, Print Screen, etc.). There must be an easy way to do this, but I've looked everywhere, and all I can come up with is something like the following:
Select Case KeyCode
Case vbKey0 to vbKey9
IsCharacter = True
Case vbKeyA to vbKeyZ
IsCharacter = True
Case vbKeyDecimal, vbKeyDivide, vbKeyMultiply
IsCharacter = True
.
.
.
And so on. There must be an easier way to do this than listing all the characters on the keyboard. Can anyone help?
Select Case KeyCode
Case vbKey0 to vbKey9
IsCharacter = True
Case vbKeyA to vbKeyZ
IsCharacter = True
Case vbKeyDecimal, vbKeyDivide, vbKeyMultiply
IsCharacter = True
.
.
.
And so on. There must be an easier way to do this than listing all the characters on the keyboard. Can anyone help?