write data in Excel using python
Michiel Overtoom
motoom at xs4all.nl
Mon Nov 16 13:20:59 EST 2015
Hi,
> On 16 Nov 2015, at 18:14, syedmwaliullah at gmail.com wrote:
> For some reason it doesn't save the file.
Did you get an error message?
> excel.activeWorkbook.SaveAs ("c:\TurnData.xlsx")
When you use backslashes in strings, don't forget to escape them:
> excel.activeWorkbook.SaveAs("c:\\TurnData.xlsx")
or use raw strings:
> excel.activeWorkbook.SaveAs(r"c:\TurnData.xlsx")
Greetings,
More information about the Python-list
mailing list