Wait execution

L

Luis

Hello.
I have a For ... Next loop that i'd like to make i'm wait for 2 seconds
between every loop. I cannot use the form timer because i already use this
trigger to do somethinf else.
How can i make the code wait ?
 
J

John Nurick

Hi Luis,

Something like this air code:

Dim dtStopNow As Date

dtStopNow = Now() + 2.31481481481481E-05
Do
DoEvents
Until StopNow <= Now()
 
Top