Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6 and Excel
Message
From
19/11/2003 19:58:04
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00806542
Message ID:
00851696
Views:
56
>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform