Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
List of excel speadsheets open
Message
From
22/09/2006 11:51:41
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
22/09/2006 11:17:30
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01156487
Message ID:
01156503
Views:
14
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform