Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Sub in "thread"
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! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Sub in "thread"
Look at OnTime in Help, and/or see http://www.cpearson.com/excel/ontime.htm
-- HTH RP (remove nothere from the email address if mailing direct) "M³ody" wrote in message ... 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! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Text Thread "Return" Without Leaving the Cell | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
Should I generally request "post a poll" when I post a new thread? | Excel Discussion (Misc queries) | |||
Can you get a log of the "thread" of lines used, when your macro run? | Excel Programming |