This is a problem very much like the one described here. However I need to do it horizontally, and my problems occur with the date. I'm on a Mac.
This is a picture of my .xlsx document. I have lots of entries like the ones in the first three rows, and I want to convert them into CSV as the last three ones. But my problem is this:
My end goal is to export my .xlsx time sheet into toggl
P.S. Minor problems that may lead to the real ones:
The easiest solution is to simply "Save As..." and select CSV as the file type.
I'm guessing you're trying to do this in some automated fashion. If the following assumptions are true:
the easiest way to convert "XLSX" to "CSV" is with a bit of VB Script:
Set objArgs = WScript.Arguments
InputName = objArgs(0)
OutputName = objArgs(1)
Set objExcel = CreateObject("Excel.application")
objExcel.application.visible=false
objExcel.application.displayalerts=false
set objExcelBook = objExcel.Workbooks.Open(InputName)
objExcelBook.SaveAs OutputName, 23
objExcel.Application.Quit
objExcel.Quit
Invoke this as:
wscript script.vbs C:\...\file.xlsx C:\...\file.csv
Update: Take a look at this posting which performs the conversion with a Perl script.
Update 2 Apparently the VBA code is finicky with respect to paths. Unqualified paths are resolved relative to your documents directory. So for reproducible results, use a full path to the input and output files.