I copy the data to a spreadsheet, use VBA to format it, then save this sheet to a CSV file.
I am using the following code:
ws.SaveAs Filename:=filestr, Fileformat:=xlCSV
ws is the sheet that I saved.
This gives me a comma delimited CSV file.
I would like to save this sheet to a file separated by a semicolon.
I found the following:
- Choose Start> Settings> Language and Regional Options.
- Click on the Configure button
- Enter a semicolon (;) next to the list separator
I followed the above procedure and changed my code to:
ws.SaveAs Filename:=filestr, Fileformat:=xlCSV, Local:=True
I still get the comma delimited CSV file as output.
I am using Excel 2003 and my OS is Windows XP.
vba excel-vba excel
user1758952
source share