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 |
All times are GMT +1. The time now is 11:55 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com