Hi

I have a userform that's called via a macro.
How can I program the form so that when I press the ESC key it will close it and stop running the program? If I click the X on the form it closes it but I need it to work with the esc key


thanks