...for anyone having problems ending long loops. One way of doing is to use the DoEvents VBA function only I found that there is a great deal of confusion about it on the Internet. I figured it out myself and, I thought, others might benefit from my experience.
As such, I wrote a small Excel file with three identical tabs. They each contain a counter with a 'start', 'stop' and 'reset' button. They are all independently controlled while the user still has control - although limited somewhat - of the spreadsheet.
Have a look and let me know what you think: 2012.11.09...MS Excel VBA DoEvents function-demo.xls
I was even able to bring up a live VBA editor, rename the tabs of the running counters, etc!!! I'm quite impressed with the DoEvents function.
Bookmarks