I want to use different Language settings within same Calc document.
Every cell has a property Cell.CharLocale. This I want to use to be set according to the actual country. In principal it is working, but if I change this CharLocale there is no effect. For example the value is 1,234 (German decimal point) and I set the CharLocale to "US-en" it looks the same. If I edit this cell language manually it will change to 1.234
How to do same by macro code?
Code: Select all
Dim Cell As Object
Dim Locale As New com.sun.star.lang.Locale
cell = ThisComponent.GetSheets().getByIndex(2).getCellByPosition(44,32)
xray Cell.CharLocale
Locale.Country = "US" 'ISO 3166 (must be "" or valid, or Language may not set)
Locale.Language = "en" 'ISO 639
Locale.Variant = ""
Cell.CharLocale = Locale
Thanks for your time!