Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

excel VBA break execution when there's no break key on keyboard [closed]

Tags:

I'm just noticing that on my laptop (Dell XPS 15z) there's no BREAK key (no dedicated number keypad). I'm running the debugger step-by-step and then when all seems fine, I just let it play out. However, it's running in an infinite loop and now I'm realizing there's no way to stop it without the break key!!!!

Is this a bad joke? I had to reboot the computer; is there a more graceful way??

like image 866
frenchie Avatar asked Apr 11 '12 21:04

frenchie


People also ask

How do you exit an infinite loop in VBA?

Option 1: Hold the Esc key down for more than a few seconds. Option 2: Press CTRL+BREAK. Option 3: CTRL + ALT + DEL to end process & have Auto recover when you re-open.

How do I stop VBA from execution in Excel?

How to manually stop your macro. In VBA, you can stop your macro execution manually with the Esc key or by pressing Ctrl+Break.

How do I get Excel to stop looping?

If the Macro is simply in a continuous loop or is running for too long you can use one of these keyboard shortcuts to kill it: Esc hit the Escape key. Ctrl + Break hit Ctrl key and then the break key, which is also the pause key.

How do I get VBA out of break mode?

To exit from break mode, choose Reset from the Run menu. Note that the caption in the titlebar of the VBA IDE indicates which mode is currently active. In particular, the caption contains the word “[running]” when in run mode and “[break]” when in break mode.


1 Answers

just press the escape key twice ;-)

like image 196
Ben Strombeck Avatar answered Sep 18 '22 05:09

Ben Strombeck