Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if Excel Workbook is already opened
Message
 
To
29/03/2007 08:05:31
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 5
Miscellaneous
Thread ID:
01209471
Message ID:
01213823
Views:
15
Thanks for the tip, I used the fopen trick, I remember this for other purposes..
>>Hi All,
>>
>>Using Excel automation I want to open an Excel Workbook if it is not already open. How to check for this?
>>
>
>You can loop through the open workbooks and see if one of them is the one you're interested in:
>
>
>FOR EACH oWB in oXL.Workbooks
>  IF oWB.Name == m.cFileName
>     * Found it
>  ENDIF
>ENDFOR
>
>
>I don't remember offhand whether the Name property is the right one and whether it includes a path, but you can figure that out from Help.
>
>Tamar
Zakaria al Azhar
My blog on Actuaris.net
Previous
Reply
Map
View

Click here to load this message in the networking platform