New to COM (Excel). Need a little help.

Bob Gailer bgailer at alum.rpi.edu
Sat Oct 4 12:24:10 EDT 2003


At 06:06 PM 10/3/2003, Marc wrote:

>One other quick question. How do I close down the Excel Application?
>After performing the commands:
>
>         x1App = win32com.client.dynamic.Dispatch('Excel.Application')
>         xlApp.Workbooks.Open(filename)
>
>That fires up Excel which stays hidden unless I make it visible. I can
>close the book and delete the COM object by doing the following:
>
>         xlBook.Close(SaveChanges=0)
>         del self.xlApp
>
>But the Excel process is still running in the background. How do I
>stop the Excel process? Leaving it running seems to screw up the
>application the next time I run it.

Right. It does. Thank you Microsoft.
Try:
x!App.Quit()

Bob Gailer
bgailer at alum.rpi.edu
303 442 2625
-------------- next part --------------

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.521 / Virus Database: 319 - Release Date: 9/23/2003


More information about the Python-list mailing list