Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is A File Aready Open?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00710752
Message ID:
00852156
Views:
29
>Sergey
>
>Seen your post on the subject and wondered if you could supply the other part of the answer - ie if it is open how can I close it?
>
>I am updating an Excel spreadsheet from VFP6 and no matter what I do I can't close Excel without cancelling the program - here is my close code - could you possibly shed any light - it seems to have baffled all the UT Gurus.
>
>oExcel.Quit()
>release oExcel
>lnHandle = fopen("c:\global\clientstats.xls",12
>if lnHandle > 0
>fclose(lnHandle)
>
>Then I try to email clientstats.xls and file access is denied
>
>Thanks
>
Colin,

Take a look at Re: Reporting using Excel, Excel remains open Thread #765514, Message #765789 and Message #765926 in particular.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform