Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Release Automated Excel Session?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00245024
Message ID:
00245215
Views:
16
>I am using VFP to automate services from Excel:
>oExcel=CREATEOBJECT('Excel.Application")
>oExcel.WorkBooks.Open('MYXLS.XLS')
>oExcel.Application.Run("Auto_Open")
>oExcel.Application.quit
>
>Things go as expected. However, pressing CTRL+ALT+DELETE to view "open programs" shows Excel still open.
>
>Is there a method to clear Excel from memory through the client, or is there an API (how would it be structured?) to remove Excel from the "Close Program" window
>
>Thankyou,
>Terry

Try changing "oExcel.Application.quit" to:
oExcel.quit
release oExcel
Michael McLain
Previous
Reply
Map
View

Click here to load this message in the networking platform