csv to xls using python 2.1.3

Tim Golden mail at timgolden.me.uk
Wed Jan 23 15:53:40 CET 2008


LizzyLiz wrote:
> Hi
> 
> I need to convert a .csv file to .xls file using python 2.1.3 which
> means I can't use pyExcelerator!  Does anyone know how I can do this?
> 
> Many thanks
> LizzyLiz

Use win32com.client to start Excel, tell it to .Open the .csv
file and then tell it to .SaveAs an Excel workbook.

TJG



More information about the Python-list mailing list