ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-win32
python-win32
Re: [python-win32] Fresh excel session
by Mark Hammond other posts by this author
Feb 21 2006 4:02PM messages near this date
[python-win32] Fresh excel session | [python-win32] Little tool - but very big size... :-(
>  Hi,
>    I wrote a small app that is able to open a excel ssheet with
>  the win32com
>  module. My problem is that it opens the new excel in the current
>  excel session
>  ( if available ). Is there a way of opening a fresh new excel
>  session with the
>  following script and not interferate with my current working session.
> 
> 
>  import win32com.client
> 
>  xlApp =  win32com.client.Dispatch('Excel.Application')

Try using win32com.client.DispatchEx() instead - that doesn't call
GetActiveObject() first, so should start a new instance.

Cheers,

Mark

_______________________________________________
Python-win32 mailing list
Python-win32@[...].org
http://mail.python.org/mailman/listinfo/python-win32
Thread:
Julien
Mark Hammond

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved