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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WSH start and check applications...

Status
Not open for further replies.

I2007

Programmer
Dec 13, 2004
506
NO
Hi...

I tried to search the forum for this answer and I couldn't find anything solving my issue.

Is it possible via whs to check if a particular program i.e excel is started and that the worksheet loaded is book1.xls?

And if not open excel with book1.xls and wait till it's loaded before the script contiues...???

This has been killing me for a while...

Thanks in advance...

i2007
 
Have a look at the GetObject function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Set objApp = GetObject(, "Outlook.Application") '#### Find existing instance of Outlook
If Err Then
WScript.Quit() '#### If Outlook isn't running, quit the script
'Set objApp = CreateObject("Outlook.Application") '#### uncomment this & comment out above line to get data even if Outlook isnt running
End If
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top