Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can i wait untill the excel in share loaded completely in VBscript 1

Status
Not open for further replies.

laks143

Programmer
Apr 20, 2009
20
GB
how can i make sure that the excel sheet in share is loaded completely.


sheet.workbooks.open "H:\plan\pv.xls",false,true

This sheet will take atleast 4to 5 minutes to open.
do i need to wait the script for 5 min...how can i make it
 
While sheet.Ready = False
WScript.Sleep 1000
Wend

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Have a star from me PHV for providing such concise and helpful advice.

I hope you find this post helpful.

Regards,

Mark

Check out my scripting solutions at
Work SMARTER not HARDER. The Spider's Parlor's Admin Script Pack is a collection of Administrative scripts designed to make IT Administration easier! Save time, get more work done, get the Admin Script Pack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top