>Hilmar
>
>This is my code
>
>release oexcel
> lnHandle = fopen("c:\global\clientstats.xls",12)
>if lnHandle > 0
>fclose(lnHandle)
>do kimmailer
>return
>endif
>
>Thanks
>
>Colin
I see. I don't remember the exact command, but I think you need to start with a "quit" or "exit" command, or something similar:
oExcel.Quit()
release oExcel
IOW, releasing the object variable will not automagically close Excel.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)