If I were in your situation, I'd determine the likely problems with the location settings of the PC at the start, and write your code to handle this in those places where you know it will struggle.
You already have experience of where many of these are from your Brazilian colleague.
Determine the problems your code falls over. Do them basically in US mode, then in those areas add an
If
statement afterwards to convert where necessary. Just as an EG, if you had a numeric value of 12,326.02 which needed to be converted to the standard European mainland version of 12.326,02 then something like :
- strFormatted = Format(dblValue, "#,##0.00")
-
If Not blnCompatible Then
-
strFormatted = Replace(strFormatted, ",", "@")
-
strFormatted = Replace(strFormatted, ".", ",")
-
strFormatted = Replace(strFormatted, "@", ".")
-
End If
This is simply an example to convey the general idea. You would need to handle each situation as you were aware of them. Good luck.