Control Break out of Infinite Loop In 2010 (2013) Excel VBA

Tommy Z picture Tommy Z · Feb 12, 2014 · Viewed 66.3k times · Source

If I write code creating an infinite loop, with my new Excel, the Ctrl + Break no longer works. Neither does the Esc key, etc.

I've looked all over the web and it appears that Microsoft has a bug and doesn't care to fix it.

Is there a way to re-introduce the Ctrl + Break function to VBA so if this happens in the future I don't lose work / force close?

Answer

John picture John · Mar 12, 2014

Alt + Esc. Hold down the keys until it breaks.

From Windows 7 on, this will cycle through all open windows. Pay no mind, just keep squeezing it.