I am trying to copy a font style from one range to another using the following code:
Range("A10").Font.FontStyle = Range("A11").Font.FontStyle
Normally it would work in a way that it extracts the name of the font style which is "Bold" from Range "A11" and uses it to set the font style of Range "A10".
However because the language of my Excel is set to Polish, instead of "Bold" it extracts the Polish name of the font style ("Pogrubiony"). Because of that, the code does not work since VBA accepts only English names (as far as I know).
I know I could do something like this:
if Range("A11").Font.FontStyle = "Pogrubiony" Then Range("A10").Font.FontStyle = "Bold"
But I'm wondering if there is a way for VBA to convert the name to English automatically or maybe recognise the name of font style if it's in different language?