Hello,
I am creating an excel tool that is used by people all working with the same Excel version (2007), but various language settings (English (UK), German, French, Spanish...)
I created the code using English (U.S.) settings. Formulas in the worksheets are translated automatically, however problems arise with formulas created by a vba script.
Here is a piece of code to illustrate the problem:
The condition is written to the selected cell in English, no matter how the local language settings are.
Is there any possibilty to tell vba to translate this to the local language? I read about "FormatLocal", but it does not seem to be applicablen here.
I would appreciate any ideas! Thanks a lot in advance!
Best regards,
Soly
I am creating an excel tool that is used by people all working with the same Excel version (2007), but various language settings (English (UK), German, French, Spanish...)
I created the code using English (U.S.) settings. Formulas in the worksheets are translated automatically, however problems arise with formulas created by a vba script.
Here is a piece of code to illustrate the problem:
Code:
Mycond1= "=AND(A1>=A2; A2>=A3)"
Selection.FormatConditions.Add Type:=xlExpression, Formula1:=Mycond1
The condition is written to the selected cell in English, no matter how the local language settings are.
Is there any possibilty to tell vba to translate this to the local language? I read about "FormatLocal", but it does not seem to be applicablen here.
I would appreciate any ideas! Thanks a lot in advance!
Best regards,
Soly