Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
List of excel speadsheets open
Message
De
22/09/2006 11:51:41
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
22/09/2006 11:17:30
Justin Roper
The Cadle Company
Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01156487
Message ID:
01156503
Vues:
15
>Hi everyone,
> I'm working on a little project where I want to check and see if excel.exe is being used and if so get a list of what files are open (full path preferably). Can anyone help me on this? Not really sure where to even start.
> Thanks

Justin,
I'd say you're sailing in dangerous waters:) Anyway:

oExcel = getobject(,"Excel.application") && wrap this one with an error routine
* if no excel is open then you would get an error
Here I simply assume Excel is opened already.
oExcel = GETOBJECT(,"Excel.application")
WITH oExcel
 FOR ix=1 to .Workbooks.Count
 ? .Workbooks(m.ix).FullName
 endfor
endwith
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform