K
kaiserlich
Hi all,
I'm trying to open a CSV-File with double-quotation mark and comma.
Afterwards i need to make some checkings in this file and save the correct
data again.
The source data looks like this: "019292","Placards","1"
The result when saving is this: 19292,Placards,1
Leading zero is missing and the double quotation mark is missing.
My code is this:
Set xlApp = CreateObject("Excel.Application")
Set xlBook = xlApp.Workbooks.Open(xlsdatei, xlMSDOS, 1, xlDelimited,
xlTextQualifierDoubleQuote, False, False, True, False, False, False)
xlBook.SaveAs FileName:="C:\test.csv", FileFormat:=xlCSV
xlBook.Close SaveChanges:=False
Please help. Thank you!
Regards
kaiserlich
I'm trying to open a CSV-File with double-quotation mark and comma.
Afterwards i need to make some checkings in this file and save the correct
data again.
The source data looks like this: "019292","Placards","1"
The result when saving is this: 19292,Placards,1
Leading zero is missing and the double quotation mark is missing.
My code is this:
Set xlApp = CreateObject("Excel.Application")
Set xlBook = xlApp.Workbooks.Open(xlsdatei, xlMSDOS, 1, xlDelimited,
xlTextQualifierDoubleQuote, False, False, True, False, False, False)
xlBook.SaveAs FileName:="C:\test.csv", FileFormat:=xlCSV
xlBook.Close SaveChanges:=False
Please help. Thank you!
Regards
kaiserlich