No, the button will not stop the macro. By default, the developer and control should not be in the user's hands. You can try the following key combination to stop the macro.
- Ctrl + Pause / Break
- Ctrl + ScrLk
- Esc + Esc (double tap in sequence)
Sometimes the correct set of keys ( Pause , Break or ScrLk) is not available on the keyboard (most often this happens with laptop users) and pressing Esc 2, 3 or several times does not stop the macro either.
I, too, got stuck and eventually found a solution in the Windows accessibility function, after which I tried all the investigated options, and more than 3 of them worked for me in three different scenarios.
Step # 01 . If the keyboard does not have a specific key, do not worry and do not open "OnScreen Keyboard" from Windows Utilities by pressing Win + U.
Step # 02 . Now try any of the above options, and they will definitely work depending on your system architecture, i.e. OS and Office versions
You will be put into break mode using the above key combinations, as the macro pauses execution, immediately ending the current task. For example, if he pulls data from the Internet, he stops immediately before executing any next command, but after pulling out the data, after which you can press F5 or F8 to continue debugging.
source share