View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Papou Papou is offline
external usenet poster
 
Posts: 67
Default 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