yetanotherid
New Member
- Joined
- Aug 6, 2011
- Messages
- 4
I'm using application.wait to pause a macro for 30 seconds. After the 30 seconds are up, I check for and process any incoming email. Once the email process macro is done, I loop back to wait for another 30 seconds. 99.99% of the macro's time is spent in application.wait.
My problem is I fired off task manager and saw that excel is using all of the cpu doing nothing but waiting for the 30 seconds to expire. It's as if application.wait is constantly reading a clock waiting for the designated time to pass.
Is there a better way of pausing for 30 seconds rather than using application.wait? My cpu's fan is spinning full tilt keeping the cpu cool while it essentially does nothing.
If I knew how to expose the macro to an external program, I could have the external program run on a 30 second schedule and fire off the email process macro instead of using wait. Suggestions?
My problem is I fired off task manager and saw that excel is using all of the cpu doing nothing but waiting for the 30 seconds to expire. It's as if application.wait is constantly reading a clock waiting for the designated time to pass.
Is there a better way of pausing for 30 seconds rather than using application.wait? My cpu's fan is spinning full tilt keeping the cpu cool while it essentially does nothing.
If I knew how to expose the macro to an external program, I could have the external program run on a 30 second schedule and fire off the email process macro instead of using wait. Suggestions?