Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Infinite loop - Excel VBA

  • 11-12-2008 11:23PM
    #1
    Registered Users, Registered Users 2 Posts: 1,086 ✭✭✭


    I have an infinite loop which happens in Excel. The only thing it does is displays a Msgbox containing text and an incremented number. How do I stop it?

    I have tried "ESC" but it is the same as me pressing "ok" and a another msgbox just appears. Is there anyway to access the Visual Basic editor to stop it?

    The computer is not calculating anything so I think there is not enough time for the "ESC" to register to stop the iteration.

    Any Help??


Comments

  • Registered Users, Registered Users 2 Posts: 177 ✭✭mercuroman


    How about ctrl + Break (the pause/break button) - think that should work


  • Registered Users, Registered Users 2 Posts: 188 ✭✭stylers


    you should be able to set the security level to high in excel so it won't run when you open it, or hold down shift when you open it. then go to tools > macro > vb editor to find the offending code..


  • Closed Accounts Posts: 6,151 ✭✭✭Thomas_S_Hunterson


    It'll stop as soon as the integer overflows. Keep clicking!


  • Closed Accounts Posts: 17,208 ✭✭✭✭aidan_walsh


    Sean_K wrote: »
    It'll stop as soon as the integer overflows. Keep clicking!
    Thats why I write my infinite loops with bound checks and resets :)


Advertisement