i want to repeat an event after a certain duration that is less than 1 second. I tried using the following code
Application.wait Now + TimeValue (\"00:00:01\
call waitfor(.005)
Sub WaitFor(NumOfSeconds As Single) Dim SngSec as Single SngSec=Timer + NumOfSeconds Do while timer < sngsec DoEvents Loop End sub
source Timing Delays in VBA