Hello,
I'm trying to use the in32com.client for writing into Excel with Dispatch() (on a windows machine using python 2.7.1). I downloaded pywin from http://sourceforge.net/projects/pywin32/ into the C:\Python27 folder and hit both setup.py and pywin32_postinstall.py
I'm running my python program in the windows command prompter cmd. But it won't run because it cannot import the win32com.client.
When prompting or running my program containing the import:
python import win32.client
I keep getting the following error message:
python: can't open file ... [Errno 2] no such file or directory
I've been trying in different combinations of 'import' 'python import', file name, complete file loaction, but nothing works. I merely keep getting error messages alternating from English to German (which is the language setting for the computer)
Any idea what the problem could be? Should I try a different pywin version? Or save it differentlx? Am I not doing the installation properly?
Thanks for any help.
Amelie
excel = win32com.client.Dispatch('Excel.Application')