A family of Microsoft word processing software products for creating web, email, and print documents.
Hi, Edward Evans
Word itself is Unicode-aware, so the document can store and show Traditional Chinese correctly, but the VBA editor can still show those characters badly when you type or paste them there. Word also supports Unicode text files, and on Windows VBA can create Unicode characters with ChrW, so the macro can still search correctly even if the editor display is messy.
Solution: Here are some suggestions you can try:
Don’t type the Chinese text directly in the VBA editor. Build the search text with ChrW, for example FindText = ChrW(&H4E2D) & ChrW(&H6587). ChrW returns a Unicode character in Windows, and Word’s Find.Execute uses the text you pass in FindText.
It is recommended that the Chinese terms be stored outside the code, then loaded into a string when the macro runs, instead of hard-coding them in the editor. That avoids the VBE input/display problem.
In Windows, change the system locale for non-Unicode programs to Traditional Chinese, then restart the PC. It is suggested this can help the VBA editor show Chinese properly.
Also check Word > File > Options > Language and add Chinese (Traditional) as an authoring language so the related language support is installed.
Thank you for your patience in reading, I hope this information has been helpful to you.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment."
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.