S
Stefan Mueller
In real VB I can intercept each pressed key with the following code
before e.g. the character of the pressed key is added to a TextBox:
Private Sub Form_Load()
Me.KeyPreview = True
...
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
MsgBox ("The key " & KeyCode & " has been pressed.")
End Sub
Is there a way to do something similar in VBA (e.g. Excel)?
before e.g. the character of the pressed key is added to a TextBox:
Private Sub Form_Load()
Me.KeyPreview = True
...
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
MsgBox ("The key " & KeyCode & " has been pressed.")
End Sub
Is there a way to do something similar in VBA (e.g. Excel)?