Getting existing instance of Excel

Mark Hammond mhammond at skippinet.com.au
Wed Nov 17 03:37:27 CET 1999


Joel Gould wrote in message <3832016f.10696885 at news.ne.mediaone.net>...
>Using win32com, you can get a new instance of excel with a command
>line:
>
>app=win32com.client.Dispatch('Excel.Application')
>
>But if Excel is already running, is there a way to get a pointer to
>the running instance of Excel?

That does return the existing instance.  If Excel is running, the existing
instance is used.  I just confirmed this using the task manager.

Indeed, I am not aware of how you can get COM to force a new instance of
Excel...

Mark.







More information about the Python-list mailing list