Forcing a break in VBA if stuck in a continuous loop

JetEscamilla

Board Regular
Joined
Apr 17, 2006
Messages
91
Office Version
  1. 2016
Platform
  1. Windows
I think the title is self explanatory. I have a macro running which I was doing step by step using F8. The sand dial is on my cursor because the macro is just running away. How can I force it to stop. Idiot me did not save before running and I dont want to lose what I just wrote.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Well you can stop code with CTRL+BREAK.

But it's probably a good idea to investigate why the code is 'running away'.:)
 
Upvote 0
Thanks for the responses

ctrl+break is not working for me. The sand dial stays on my cursor and will not let me click anywhere on the VBA window. It may be that excel just bugged out on me and not stuck in a loop. Any other ideals.
 
Upvote 0
You won't like this idea....

go get lunch, and wait for it to stop...

Otherwise, CTRL + ALT + DEL - end process
 
Upvote 0
Well I had to Ctrl+Alt+Del it. Auto recover picked it up from an hour ago. Not too much was lost. Still frustrating, but I guess it could have been worse. Thanks for the replies everyone.
 
Upvote 0
You can keep tapping ESC but in my experience that often doesn't work.
 
Upvote 0
That was my experience as well. I guess I need to be more careful in future. Thanks for the reply.
 
Upvote 0

Forum statistics

Threads
1,214,617
Messages
6,120,541
Members
448,970
Latest member
kennimack

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top