Sub in "thread"

  • Thread starter Thread starter M³ody
  • Start date Start date
M

M³ody

Hello,

I need to have a sub, which`ll be run every 5 seconds. How can I do it in
VBA?
I tried with :
while loop
+doEvents
+getMilis (from "kernel.dll")

but it makes 100% CPU usage and blocks Excel.
Is there any metod similar to threads (Timer) or sth. like this?

Thanks in advance!
 

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

Similar Threads


Back
Top