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

Marc mnations at airmail.net
Fri Oct 3 20:06:18 EDT 2003


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.

Thanks again,
Marc




More information about the Python-list mailing list