I was trying to change text from one font to the other, and this worked:
Code: Select all
oWord := ComObjActive("Word.Application")
oWord.Selection.Font.Name := "Arial"
because I wanted to change Chinese punctuation into Western-style punctuation,
which does work if you just choose a font from the drop-down menu in Word,
but which doesn't work if you use the above code.
So I went hunting on the Visual Basic forums for clues, and I found this:
I think this may be why the code doesn't work,
because I think that as well as a font name, every font may have a “Language ID”.
Does anyone know how to change language ID in COM?
Thanks!