CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: KeyUp event

  1. #1
    Join Date
    May 2000
    Posts
    33

    KeyUp event

    In my VBA Excel application, I want to call a procedure when the user presses Ctrl-l. I know I have to do something like that but I don't know exactly how does it works.

    private Sub oXLApp_KeyUp(byval KeyAscii as MSForms.ReturnInteger, byval Shift as Integer)
    'MsgBox (KeyAscii & Shift)
    End Sub




    Could you please help me.

    Thanks


  2. #2
    Join Date
    Aug 2001
    Location
    PA
    Posts
    150

    Re: KeyUp event

    Hi,

    try this:

    If KeyCode = vbKeyControl & Chr(KeyAscii)= "l" Then

    do what you want here
    End If

    Good Luck!

    Thanks
    Hisham
    Thank You, Hisham

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured