Halt all code while macro runs

G

Guest

Is there a way to halt all other code or vba from running while a certain
macro runs?
 
B

Bob Phillips

What exactly do you mean, Excel will only execute one thread at a time so it
does.

If you mean you want to stop Excel's events firing, worksheet events, set

Application.EnableEvents = false

and reset at the end.
 

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