Hello.
So I'm trying to automate a .csv to .xls conversion. I have this little snippet (below) that works to get the data into an .xls file, the problem is that it doesn't actually utilize the "," delim. So, while this opens the .csv in Excel and re-saves it, I need it to actually use the "Get External Data -> Text File..." method. Anyway, any help is appreciated.
Dim myXL
Set myXL=CreateObject ("Excel.Application")
myXL.WorkBooks.Open "C:\DIR\file.csv"
myXL.DisplayAlerts=False 'To keep Excel hidden
myXL.ActiveWorkbook.SaveAs "C:\DIR\file.xls", -4143 'IDK what the "-4143" does
myXL.DisplayAlerts=True
myXL.ActiveWorkbook.Close False
myXL.Quit
Set myXL = Nothing
NOTE: If there are any typos, know that they are correct in the actual .vbs.