Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Test for Excel instance?
Message
From
18/02/2002 18:13:46
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Test for Excel instance?
Miscellaneous
Thread ID:
00621712
Message ID:
00621712
Views:
56
I am using Excel 2000 automated by VFP7. If I use :-
GetObject('','excel.application')
if there isn't an existing instance of Excel, one is created. If there is an existing instance, a reference to it is returned.

Question: How can I test whether there is already an existing instance of Excel available?

Using Word2000 in the same circumstances, if I use GetObject() and an instance isn't available, I can trap for an OLE error. What about Excel ?

Any ideas ?

TIA

-=Gary
-=Gary
Next
Reply
Map
View

Click here to load this message in the networking platform