vbaunicodems-wordpowerpointword-2003

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


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?


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).