I would like to export a number of excel files to .csv using a macro that specifies the column separator.
I've read that the way to get excel to export with a custom separator eg. "|" instead of "," is to change the separator in the Regional Settings in your control panel.
I did this and it worked fine when I export a single file, however when I try to use a macro to export using the following snippet, the file still saves with the default comma separators.
ActiveWorkbook.SaveAs Filename:= _
"C:\Export\newfile.csv", FileFormat _
:=xlCSV, CreateBackup:=False
Can anyone tell me why this is happening? Is there a method to save a file through VBA that will use the separator I have specified?