Unload the form on esc key
Hello VJ
Private Sub UserForm_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal
Shift As Integer)
If KeyCode = 27 Then Unload Me
End Sub
HTH
Cordially
Pascal
"VJ" a écrit dans le message de
...
Hi,
Is there any way to unload the form on pressing the Esc key in vba?
Thanks
VJ
|