I am writing a excel macro with VBA that contains a simple formula:
Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=NOT(AND($L1>360;$K1<45))"
However, this does only work, if the language in excel is set to English. If the applicants language is for instance German, it looks like that:
Selection.FormatConditions.Add Type:=xlExpression, Formula1:="=NICHT(UND($L1>360;$K1<45))"
Is there a way to use a generic one that works for all applicants?
Some requirements regarding the solution:
- It should not be specific (no translation from english into german)
- Also a select case statement with the language ID is not applicable
- There is an option with a function translator: This cannot be applied due to admin restrictions (and I am curious, if there is another way :) )
- Changing the formula to use it within a cell is also not applicable, since I need the format condition there
Any help is appreciated