try using End, this will completely end any code that is running but wont shut down the application. Or you can also use Exit Sub which will end the current macro or sub procedure that you are in.
ESC key or a combination {CTRL}+{pause/break} breaks the code execution.
However, if Application.EnableCancelKey is set to xlDisabled, you can't break the code.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.