Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Test for Excel instance?
Message
De
18/02/2002 18:13:46
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Test for Excel instance?
Divers
Thread ID:
00621712
Message ID:
00621712
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform