JeffGrant
Well-known Member
- Joined
- Apr 7, 2021
- Messages
- 558
- Office Version
- 365
- Platform
- Windows
Hi All,
I am looking for some suggestions. In my model I have a lot of macros and querries that generally need to run sequentially. I have a considerable number of application.wait and timer loops to ensure that all queries and macros are completed, at least to the best of my ability anyway.
Because the wait statements and timer loops generally use a fixed waiting time of some value, on the whole everything works fine.
However, occasionally, I get a hiccup where something has not completed in time which leads to run time errors down the line.
I am looking for suggestions on how best to "monitor" that everything gets completed before the actual processing starts.
I am considering writing out a flag somewhere and summing the flags so that if the sum of the flags does not equal an expected total, then I know that not all the macros have run.
Has anybody got any other ideas?
As usual, I thank you in advance for your input.
Jeff.
I am looking for some suggestions. In my model I have a lot of macros and querries that generally need to run sequentially. I have a considerable number of application.wait and timer loops to ensure that all queries and macros are completed, at least to the best of my ability anyway.
Because the wait statements and timer loops generally use a fixed waiting time of some value, on the whole everything works fine.
However, occasionally, I get a hiccup where something has not completed in time which leads to run time errors down the line.
I am looking for suggestions on how best to "monitor" that everything gets completed before the actual processing starts.
I am considering writing out a flag somewhere and summing the flags so that if the sum of the flags does not equal an expected total, then I know that not all the macros have run.
Has anybody got any other ideas?
As usual, I thank you in advance for your input.
Jeff.