Consulting

Results 1 to 3 of 3

Thread: Solved: Keycode value

  1. #1
    VBAX Regular
    Joined
    May 2004
    Posts
    42
    Location

    Solved: Keycode value

    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.

  2. #2
    VBAX Tutor
    Joined
    May 2004
    Location
    Germany, Dresden
    Posts
    217
    Location
    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?

  3. #3
    VBAX Regular
    Joined
    May 2004
    Posts
    42
    Location
    This worked, thank you very much.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •