When working with formula's in Excel using automation, you have to know what language-version of Excel is installed (English, Dutch, French, etc.) in order to write your formula (eg. SUM/SOM/SOMME, ROUND/AFRONDEN/...).
The function
xlApp.International(lxlCountryCode));
(with lxlCountryCode = 1) returns the language being used.
There must be a way to use formula's independant of the language, so you only have to write them in English.
How can you do this?
Comments
If I do the following in Excel Range("A1").Formula = "=Sum(B1:B10)", A1 will contain the formula in the local user his language.
If I do the same in Navision, it A1 always contains "=Sum(B1:B10)", it does not translate the formula.
It would be SUPER, and I mean super super handy to get this working since we have EMEA offices where all users have Excel in their native language and I do not want to start looking at the Excel version of the user and start saving all formulas in all languages.
I was actually entering an article about this on my blog when I got a message you replied to this post :-).
You can read how I solved it on my blog article here: http://www.noisyvan.com/2008/10/09/make-exporting-excel-formulas-fully-multilanguage-aware/.
Is it allowed to put just a link to this article or should I cope the content over here too?
Anyway, I'll take a time and post this blog page here (screenshots will be from blog too):
https://ricardomoinhos.com/excel-buffer-detect-excels-language/