Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
2007 Macro to Open File, Delete Contents, Save New File | Excel Discussion (Misc queries) | |||
Can't open a file and save under a different name | Excel Discussion (Misc queries) | |||
Office 2003 - "autocomplete" in file | open or file | save no longer works | Excel Discussion (Misc queries) | |||
open & save old xls file | Excel Programming | |||
Automate open file, update links, run macro, close and save file | Excel Programming |