How to abort executing macro?

P

perfb

is there a way to provide a button that will always abort the
VBA execution?

e.g. am executing multiple loops, with calls to time delay functions,
(data acquisition loop), and while this is running, the worksheet
buttons are dead. Even if I have the Visual Basic window open,
I cant use the 'stop' button while the time delay function is
executing, it wont respond for some reason.

I would like a way to preemptively abort execution, e.g. a separate
watchdog process/thread?

tia!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top