Re: write data in Excel using python

2015-11-16 Thread tdsperth
On Tuesday, November 17, 2015 at 1:14:56 AM UTC+8, SW wrote: > hi, > I am trying to write Excel file suing output from another software where the > output comes as myturnlist.Show() > > The first part is for the output from the software which is saved in the > clipboard. > > The big middle pa

Re: write data in Excel using python

2015-11-16 Thread Ian Kelly
On Mon, Nov 16, 2015 at 11:20 AM, Michiel Overtoom wrote: > > Hi, > >> On 16 Nov 2015, at 18:14, syedmwaliul...@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 stri

Re: write data in Excel using python

2015-11-16 Thread Michiel Overtoom
Hi, > On 16 Nov 2015, at 18:14, syedmwaliul...@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:\\Tur