I have been using this code from a previous post. The code prevents any characters other than text from being entered in to a text box. (Using the key press)
I was wondering out of general interest if anybody had any idea of how it works?
Select Case KeyAscii
Case Is < 46
KeyAscii = 8
Case Is > 57
KeyAscii = 8
Case 47
KeyAscii = 8
I was wondering out of general interest if anybody had any idea of how it works?
Select Case KeyAscii
Case Is < 46
KeyAscii = 8
Case Is > 57
KeyAscii = 8
Case 47
KeyAscii = 8