Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Web Query Sleep or Wait for return values


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

--
Sunil_Mod
-----------------------------------------------------------------------
Sunil_Modi's Profile: http://www.excelforum.com/member.php...fo&userid=1653
View this thread: http://www.excelforum.com/showthread.php?threadid=31880

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Web Query Sleep or Wait for return values

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

-----Original Message-----

Hello all excel users-

I have excel run a CGI through a web query, which runs a

script on a
UNIX box. The script runs for 3 minutes and the spits

out a file. I
was wondering how to make excel wait the 3 minutes, and

not crap out
with an error "Unable to get information from ..."? Is

it possible to
make excel wait or sleep that long while it waits?

Thanks

-sunil


--
Sunil_Modi
----------------------------------------------------------

--------------
Sunil_Modi's Profile:

http://www.excelforum.com/member.php?
action=getinfo&userid=16533
View this thread:

http://www.excelforum.com/showthread...hreadid=318802

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,253
Default Web Query Sleep or Wait for return values


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 :


Hello all excel users-

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

Thanks

-sunil

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
sendkeys(keys,wait) how do I use wait MM Excel Discussion (Misc queries) 1 February 11th 09 03:47 PM
Parameter Query to return multiple values Ruth Excel Discussion (Misc queries) 2 January 3rd 08 12:50 PM
Importing Data via Web Query - Can values be passed to query? [email protected] Excel Discussion (Misc queries) 5 May 9th 06 06:21 PM
Web Query Sleep for until results come Sunil_Modi Excel Worksheet Functions 0 November 19th 04 04:29 PM
Sleep, Wait and Busy cursor functionality Sudarshan Excel Programming 4 May 26th 04 07:20 PM


All times are GMT +1. The time now is 07:28 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"