Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to know if Excel Workbook is already opened
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 5
Miscellaneous
Thread ID:
01209471
Message ID:
01209479
Views:
19
>>Hi All,
>>
>>Using Excel automation I want to open an Excel Workbook if it is not already open. How to check for this?
>>
>>Thanks beforehand.
>
>AFAIK the simplest way to check is to open with low-level fopen function. However, there is a very tiny chance of having the file opened by someone while you're testing for this.

Also found this thread Re: How can I check if excel File is open before writing to Thread #812502 Message #812506
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform