I'm trying yo update my arrays full of numerical values, once I know which Regional settings are set on the computer.
I used this code :
If Application.International(xlCountrySetting) <> 33 Then
For Each x In Country
x = Replace(x, ",", ".")
Next x
Else
For Each x In Country
x = Replace(x, ".", ",")
Next x
End If
When I debug, I see that x has been changed, but later on in code, the values in Array haven't been modified.
I know I can use For i = LBound(Country,1) to UBound(Country,1) but I was wondering if there is a way to do this with the For Each statement.
Any idea?
Dim Country()and here, I tried both.