H
hoffj
I am positive that I remember that Sendkeys had a sleep option that could be
used to allow program execution to continue while I specify the amount of
time I wish to wait in milliseconds. I use "ECHO.Wscript.sleep
1000>>_TEMP.VBS" whenever I automate something using a batch file and it
works great, but I forget how the sleep syntax is for vba coding. Any help
would be appreciated. I have also tried the following sleep function I found
in another post, but it will completely pause program execution.
Private Declare Sub sapiSleep Lib "kernel32" _
Alias "Sleep" _
(ByVal dwMilliseconds As Long)
Sub sSleep(lngMilliSec As Long)
If lngMilliSec > 0 Then
Call sapiSleep(lngMilliSec)
End If
End Sub
used to allow program execution to continue while I specify the amount of
time I wish to wait in milliseconds. I use "ECHO.Wscript.sleep
1000>>_TEMP.VBS" whenever I automate something using a batch file and it
works great, but I forget how the sleep syntax is for vba coding. Any help
would be appreciated. I have also tried the following sleep function I found
in another post, but it will completely pause program execution.
Private Declare Sub sapiSleep Lib "kernel32" _
Alias "Sleep" _
(ByVal dwMilliseconds As Long)
Sub sSleep(lngMilliSec As Long)
If lngMilliSec > 0 Then
Call sapiSleep(lngMilliSec)
End If
End Sub