Hello people,
I am looking for a solution to save a file as CSV file with Always the same settings for list separator, decimal separator and thousand separator. If I run the macro from my computer the file will be as it should be because my local settings in Windows 10 are Decimal=, ; Thousand=. and semicolon=;. And my VBA code of the Line SaveAs has the argument Local:=True.
But when this macro is run by one of my collegues the CSV file has the separators that are use on American computers (semicolon=, decimal=. and Thousand=,). The collegues can not change their Windows local settings because they run a lot of programs that needs these settings.
My question is now how can we program our VBA code that it looks which user is running this file and macro and than change the local settings for saving this file and then put back the Original local settings. And here is the focus on the semicolon to ;.
The macro that is running now looks like this:
Who can help me in this matter.
I am looking for a solution to save a file as CSV file with Always the same settings for list separator, decimal separator and thousand separator. If I run the macro from my computer the file will be as it should be because my local settings in Windows 10 are Decimal=, ; Thousand=. and semicolon=;. And my VBA code of the Line SaveAs has the argument Local:=True.
But when this macro is run by one of my collegues the CSV file has the separators that are use on American computers (semicolon=, decimal=. and Thousand=,). The collegues can not change their Windows local settings because they run a lot of programs that needs these settings.
My question is now how can we program our VBA code that it looks which user is running this file and macro and than change the local settings for saving this file and then put back the Original local settings. And here is the focus on the semicolon to ;.
The macro that is running now looks like this:
Who can help me in this matter.