Click to See Complete Forum and Search --> : KeyUp event


FMadore
August 22nd, 2001, 04:53 PM
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

hoa01206
August 22nd, 2001, 05:58 PM
Hi,

try this:

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

do what you want here
End If

Good Luck!

Thanks
Hisham