Or as a follow-up to Tim's response, the other likely scenario is that
you have a 32bit Excel but a 64bit Python. So if that sounds likely,
just remove the 64bit Python and use a 32bit version.
Cheers,
Mark
On 11/05/2012 2:02 PM, rohit.niran...@wellsfargo.com wrote:
Hi All,
I am getting error while trying to execute code:
from win32com.client import Dispatch
xlApp = Dispatch("Excel.Application")
Dispatch
C:\Python27\lib\site-packages\win32com\client\__init__.py 95
_GetGoodDispatchAndUserName
C:\Python27\lib\site-packages\win32com\client\dynamic.py 108
_GetGoodDispatch
C:\Python27\lib\site-packages\win32com\client\dynamic.py 85
com_error: (-2147221005, 'Invalid class string', None, None)
Can anyone please help me.
Thanks
_ ________________________________ _
This email is subject to a disclaimer, please click on the following
link or cut and paste the link into the address bar of your browser.
https://www.wellsfargo.com/com/disclaimer/ged2
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32