Is there a way to WAIT in Excel without using 100% CPU?

G

Guest

When using the Application.Wait command in Excel, CPU utilization goes to
100% for the duration of the wait command. Is there a better way?
 
I

Ingolf

Hello, Marc

you could split your macro into two procedures, the first of which
consisting of everything ahead of your application.wait command and the
second one consisting of everything after it. Then, in the first
procedure you could use the application.ontime command to call the
second procedure with a certain time delay. This may also require some
modification concerning the declaration (validation) of variables, but
other than the application.wait command it doesn't require much CPU
utilization.

Regards
Ingolf
 

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