ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Halt all code while macro runs (https://www.excelbanter.com/excel-programming/342565-halt-all-code-while-macro-runs.html)

TimT

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


Bob Phillips[_6_]

Halt all code while macro runs
 
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.

--
HTH

Bob Phillips

"TimT" wrote in message
...
Is there a way to halt all other code or vba from running while a certain
macro runs?





All times are GMT +1. The time now is 08:04 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com