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

VBS to start an application question

Status
Not open for further replies.

thelocaluk

Technical User
Dec 8, 2005
11
GB
Hi, I use the following VB script to start my application
Code:
Dim objXL
Set objXL = WScript.CreateObject("Excel.Application")
objXL.WorkBooks.Open "\\Oxfsrv1\USERS\Common\Andre's Work Folder\IQuaTracker\IquaDemo.xls"
I don't want this script to run if the applicaion is already open, how do I do that?
 
If this is VB6 then use GetObject and trap the error if it's already open.

If it's actually VBSCRIPT then try forum329

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first.
'If we're supposed to work in Hex, why have we only got A fingers?'
Drive a Steam Roller
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top