Hi, Excel Masters.
In need of your help again. I'm creating a macro code that will convert the comma decimal separator to point(.). The problem is, when the macro was ran on Mac it didn't go back to the original/deault decimal point separator. And all the excel files are now having comma as decimal separator. Below is the code that I used. Can you please help me for a solution to change back to decimal point separator? Thank you in advance.
Dim bCurrent As Boolean
bCurrent = Application.UseSystemSeparators
If bCurrent Then
Application.DecimalSeparator = ","
Application.ThousandsSeparator = "."
Application.UseSystemSeparators = False 'change the current separator to windows default in US setting
MsgBox "You're NOT Using the default System Separators"
Else
Application.UseSystemSeparators = True 'will directly process the excel with the windows default in US setting
MsgBox "You're using default System Separators"
End If
In need of your help again. I'm creating a macro code that will convert the comma decimal separator to point(.). The problem is, when the macro was ran on Mac it didn't go back to the original/deault decimal point separator. And all the excel files are now having comma as decimal separator. Below is the code that I used. Can you please help me for a solution to change back to decimal point separator? Thank you in advance.
Dim bCurrent As Boolean
bCurrent = Application.UseSystemSeparators
If bCurrent Then
Application.DecimalSeparator = ","
Application.ThousandsSeparator = "."
Application.UseSystemSeparators = False 'change the current separator to windows default in US setting
MsgBox "You're NOT Using the default System Separators"
Else
Application.UseSystemSeparators = True 'will directly process the excel with the windows default in US setting
MsgBox "You're using default System Separators"
End If