On Tue, Oct 13, 2015 at 1:37 AM, Michiel Overtoom wrote:
> Hi,
>
>> excel_book=Excel.Workbooks.Open('D:\WebPython\Config3.xlsx')
>
> Shouldn't this be:
>
> excel_book=Excel.Workbooks.Open('D:\\WebPython\\Config3.xlsx')
> or
> excel_book=Excel.Workbooks.Open(r'D:\WebPython\Config3.xlsx')
>
Hi,
> excel_book=Excel.Workbooks.Open('D:\WebPython\Config3.xlsx')
Shouldn't this be:
excel_book=Excel.Workbooks.Open('D:\\WebPython\\Config3.xlsx')
or
excel_book=Excel.Workbooks.Open(r'D:\WebPython\Config3.xlsx')
?
--
https://mail.python.org/mailman/listinfo/python-list
Very Thanks Irmen!
It's helped me.
--
https://mail.python.org/mailman/listinfo/python-list
On 9-10-2015 20:45, [email protected] wrote:
> Hi Guys,
>
> i wrote small function :
>
> Excel = win32com.client.Dispatch("Excel.Application")
[...]
> com_error: (-2147221008, 'CoInitialize has not been called.', None, None)
>
> Please, help me! :)
>
First hit on google when search
Hi Guys,
i wrote small function :
Excel = win32com.client.Dispatch("Excel.Application")
excel_book=Excel.Workbooks.Open('D:\WebPython\Config3.xlsx')
s_config=excel_book.Worksheets('VA Prices')
def writtenCell(row,col,value):
try:
global s_config
print "row --