[python-win32] Forcing win32com.client.dispatch to start up a fresh Excel

John Machin sjmachin at lexicon.net
Tue Jun 21 22:15:14 CEST 2005


Tom_RobbinsMilne at swissre.com wrote:

>
> Hi,
>
> I'm trying to use Python's win32com interface to drive an excel 
> spreadsheet.
>
> I've managed to have it open the sheet, call a VBA function with 
> arguments, and close it down cleanly.
>
> However, if Excel is already running, it closes the open instance. 
> Which is not good.
>
> Is there a way I can do the equivalent of VBA's CreateObject() with 
> win32com? 


If this means "Can I create a totally different independant instance of 
Excel so that I don't run the risk of stuffing up what the user is doing 
with their existing instance", then I'd like to know too.



More information about the Python-win32 mailing list