My Excel is set in English for everything (formula, interface, guide).
My Windows is set with "," for decimal symbol and with "." for Digit grouping symbol in regional settings, as I live in Italy.
If I write this code:
result is displayed as "12345678901234567050,123456789" (Variant/Decimal) in Locals window. Same if I msgbox it.
If I use "." instead than ",", result is 12345678901234567000123456839.
In VBA, when writing numbers (in form of numbers, not strings), I must use the english syntax i.e. "." for decimal symbol.
I believe that that code of my example would run wrongly by a Windows with English regional settings.
How can I (modify it to) make it run correctly with any regional settings?
Bookmarks