Message 1 of 6
Esc Key to terminate a running application

Not applicable
08-01-2006
01:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All
I am having trouble detecting when the user presses the esc key. I placed
the following code in the userform...
Private Sub UserForm_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = vbKeyEscape Then Unload Me
End Sub
but for some reason it's not working. Any help?
Thanks
Avantika
I am having trouble detecting when the user presses the esc key. I placed
the following code in the userform...
Private Sub UserForm_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = vbKeyEscape Then Unload Me
End Sub
but for some reason it's not working. Any help?
Thanks
Avantika