[python-win32] Help needed on Dispatch
Tim Roberts
timr at probo.com
Fri May 11 19:10:11 CEST 2012
Rohit.Nirantar at 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)
The most likely explanation is that you do not have Excel installed on
your computer.
--
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.
More information about the python-win32
mailing list