that is because Excel doesn't save a CSV file in the format. You would have
to write a macro to write it back out in that format.
Better to just edit it in wordpad perhaps.
Anyway, here is a link to some code:
http://support.microsoft.com/default...b;en-us;291296
Procedure to export a text file with both comma and quote delimiters in Excel
--
regards,
Tom Ogilvy
"kaiserlich" wrote:
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