Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Hello,
I have an existing file that is in .csv file format. The comma ( , ) is used to seperate the values. When I open the file in Excel, it works fine and displays the values seperately in cells. Now I am creating my own .csv files through VBA, with the SaveAs method for Worksheet objects. E.g. I use the following syntax: objWS.SaveAs Filename:="c:\temp\" + gstrNameVP + ".csv", FileFormat:=xlCSVWindows The file saves as .csv BUT the values are seperated by a semi-colon( ; ) which is not what I want. I want comma-seperated. Otherwise when I open the ..csv in Excel, the values do not display correctly in the cells. I also changed the list seperator character to a comma in my XP's Regional settings-Number settings. I cannot understand how the original file was saved using commas for seperating the values. When I create a file in Excel, and save it as .csv, it always uses semi-colon seperators. Can somebody please tell me how I can seperate the values by commas in the ..csv properly? Thanks in advance and for paying attention to my post. Jean |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
When converting an .xls file to .csv I get too many commas at the. | Excel Discussion (Misc queries) | |||
format question when open csv file | Excel Discussion (Misc queries) | |||
Openning an .csv file | Excel Discussion (Misc queries) | |||
Excel How do I create a comma delineated xls file to a comma delineated. | Excel Discussion (Misc queries) | |||
.CSV file format - comma or semi-colon | Excel Worksheet Functions |