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:
00852017
Views:
19
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
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform