I am trying to find the function or a function that will give me the value of a key or a comination of keys pressed. I want to use this in a keydown event.
I am trying to find the function or a function that will give me the value of a key or a comination of keys pressed. I want to use this in a keydown event.
Why not just build a "debugging" userform which just has a label and give it the following code:
[VBA]
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
Label1.Caption = KeyCode
End Sub
[/VBA]
Then you should be able to press keys and see their code in the label. Or did I misunderstand you completely?
This worked, thank you very much.