I am using the macro given as the accepted answer to this question. Saving excel worksheet to CSV files with filename+worksheet name using VB
However, I have edited windows default line separator from a comma to a semicolon.
Thus if I save a single worksheet excel workbook as .csv the txt generated is correct, using semicolons as I need.
However, when I use the macro to auto-generate individual .csv files from a multi worksheet excel workbook, all files generate with only comma delineation.
I can only assume that the macro is not referencing the same system variables excel is, and would really appreciate if someone can point me to a solution. Or if you wouldn't mind, simply post an edited version of the macro solution from the issue linked above.
I appreciate your time.
edit 14_0412 #1: I stumbled onto this:
Application.PathSeparator
And attempted to add it here:
For Each WS In ThisWorkbook.Worksheets
WS.SaveAs SaveToDirectory & WS.Name, xlCSV, "", "", False, False, False, Application.PathSeparator
Next
I also attempted to place a simple string ";".
The macro completes without error but output is the same.