Decimalseperator lost after conversion from csv to excel with vb-script -


I have a CSV with a semicolon separator that I would like to convert to a regular Excel sheet, But I must be mistaken because the number with decimal in the original file does not start with zero, the number in Excel is visible without the decimal separator. When I manually open CSV in Excel the result will be fine, so there should be a side effect to do it with the script. For example:

There is a line in CSV:

2013-03-10 17:00:15; Inactive; 2,272298 ;; 0,121860

This happens in Excel Sheet:

2013-03-10 17:00 | Useless 2.272.298 | | 0,121860

Manually opened in Excel:

2013-03-10 17:00 | Useless 2,272298 | | 0,121860

Can anyone tell me what I can change / change to make decimal as decimal in Excel? Perhaps a way to tell Excel that argues for compelling the symbol to use decimal separator or European form?

Kind regards, nico

I currently have a script, where csvFile is a string with the full path of the original file and Excel File is the full path to the place where I want to store the new Excel sheet set objExcel = CreateObject ("Excel.Application") 'excel objExcel.Visible = true' visible objExcel.displayalerts = false 'no warnings ObjExcel.Workbooks.Open (csvFile) 'use Open file objExcel.ActiveWorkbook.SaveAs ExcelFile, -4143 ,,, false, save as' Xls objExcel.Quit' A close Create a schema.ini file in the

folder Your csvFile stays and describes it according to the given rules.

Read further:,

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -