>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--