KeyCode |
The parameter which contains an ASCII value
representing the key pressed by the user. To test for which
letter key is being pressed, you can use the following
procedure: Private Sub
Form_keyDown(KeyCode As Integer, shift As Integer)
If KeyCode >= vbKeyA And KeyCode <= vbKeyZ Then
Print Chr(KeyCode)
End If
End Sub
* The function Chr will display the character
corresponding to a ASCII code |