I have a UserForm with two buttons and a number of check boxes:
How do I configure the form so that I can Cancel
/ Escape
it with the Esc key?
Make sure there is a "Cancel" button on the UserForm, and set the Cancel
property of that button to True
. In the code for that button, execute Unload Me
, Me.Hide
, or however you want to exit the userform. E.g., this answer.