[python-win32] Connect to Excel via COM leaves process hanging

Morgan, Michael L (US SSA) GXP michael.morgan2 at baesystems.com
Tue Jan 25 21:37:58 CET 2005


Howdy,
 
Yesterday, I sent out a message, but forgot a couple of key lines. Sorry
for the oversite. 
 
from win32com.client import Dispatch
#Open the sheet.
xl_app= Dispatch("Excel.Application")
xl_book= xl_app.Workbooks.Open(<filename>)
 
#Close the sheet and exit the app.
xl_book.Close()
xl_app.Quit()
del xl_app
 
This leaves 'Excel' in the process list. How can I get rid of it?
 
Thanks for your time,
Mike
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20050125/6cc8368a/attachment.htm


More information about the Python-win32 mailing list