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