Question

Is there a way to use Unicode paths/filenames in Word 2003 or higher VBA code?

It appears that Word supports Unicode path/filenames via its interactive dialogues, but when our VBA code tries to manipulate Unicode path/filenames exposed via Word properties, we get back strings with lots of question marks.

Is there something we need to do have Word VBA work in a Unicode mode?

Was it helpful?

Solution

Oh, it's a real pain. I've been using this, which has been very helpful. There are ways to manually build this support directly in VBA. A couple of searches turned up things like this.

Note that this still won't help with the dialogs, etc. as they are set to the LocaleID of the OS (so if you change your OS display language to the local language, they should appear just fine).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top