Web Query Sleep or Wait for return values

S

Sunil_Modi

Hello all excel users-

I have excel run a CGI through a web query, which runs a script on
UNIX box. The script runs for 3 minutes and the spits out a file.
was wondering how to make excel wait the 3 minutes, and not crap ou
with an error "Unable to get information from ..."? Is it possible t
make excel wait or sleep that long while it waits?

Thanks

-suni
 
D

DMoney

Assuming code has been executed in excel, one of the
following should help.

Wait Method Examples

This example pauses a running macro until 6:23 P.M. today.

Application.Wait "18:23:00"
This example pauses a running macro for approximately 10
seconds.

newHour = Hour(Now())
newMinute = Minute(Now())
newSecond = Second(Now()) + 10
waitTime = TimeSerial(newHour, newMinute, newSecond)
Application.Wait waitTime
This example displays a message indicating whether 10
seconds have passed.

If Application.Wait(Now + TimeValue("0:00:10")) Then
MsgBox "Time expired"
End If
 
K

keepITcool

set it as a backgroundquery ?
and have a ontime proc check if the file is there?


--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Sunil_Modi wrote :
 

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

Top