I have this SCRIPT to open a csv file and save it as an excel file.
srccsvfile = "c:\Test.csv"
srcxlsfile = "c:\Test.xls"
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.displayalerts=false
Set objWorkbook = objExcel.Workbooks.open(srccsvfile)
Set objWorksheet1 = objWorkbook.Worksheets(1)
objWorksheet1.SaveAs srcxlsfile, 2
How can I preserve the format of the csv file (i.e leading zeroes, number of decimal places)
Any Help will be greatly appreciated.
srccsvfile = "c:\Test.csv"
srcxlsfile = "c:\Test.xls"
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.displayalerts=false
Set objWorkbook = objExcel.Workbooks.open(srccsvfile)
Set objWorksheet1 = objWorkbook.Worksheets(1)
objWorksheet1.SaveAs srcxlsfile, 2
How can I preserve the format of the csv file (i.e leading zeroes, number of decimal places)
Any Help will be greatly appreciated.