A family of Microsoft word processing software products for creating web, email, and print documents.
VBA in the Traditional Chinese environment uses Windows Codepage 950. For consistency with that code page when working with Traditional Chinese text in Word, the relevant pieces are:
- Encoding / code page
- Codepage 950 corresponds to Traditional Chinese Big5.
- In the
MsoEncodingenumeration, the matching constant is:msoEncodingTraditionalChineseBig5 ' value = 950 - For auto-detection of Traditional Chinese encodings, there is also:
msoEncodingTraditionalChineseAutoDetect ' value = 50950
Encodingargument, usemsoEncodingTraditionalChineseBig5to align with Codepage 950. - Font for Traditional Chinese / Codepage 950
- Word maps Traditional Chinese encodings (including BIG5) to the MingLiU font family by default.
- MingLiU is a Traditional Chinese mincho (serif) font; its code pages include 1950 Chinese: Traditional chars–Taiwan and Hong Kong SAR, which corresponds to the Traditional Chinese set used with Codepage 950.
- VBA identifiers and Codepage 950
- VBA support for identifiers containing Traditional Chinese characters is based on Windows Codepage 950.
- Traditional Chinese characters are encoded as 16‑bit double‑byte characters with code points beginning at
%xA140in Codepage 950; their Unicode equivalents are defined inbestfit950.txt.
Putting this together:
- Use
msoEncodingTraditionalChineseBig5when specifying encoding in Word/Office VBA to match the VBA editor’s Traditional Chinese Codepage 950 behavior. - Use MingLiU (or its variants such as MingLiU_HKSCS) as the font to keep display consistent with Word’s default mapping for Traditional Chinese encodings.
References: