Quote Originally Posted by Elroy View Post
So LeandroA, that’s the long answer as to why ChrW didn’t work for you.
And your "long answer" is still wrong in nearly its entirety.

ChrW$ does work as it should (for 16-bit-Code-Units, converting them from a 16Bit-Number into a BSTR).

I've already explained to you, that the ChrW2-function (which came up earlier in this thread),
should have been better named - as e.g. UTF32number_to_UTF16string(Byval UTF32Value As Long)...
(with UTF32numbers below the BMP, resulting in a BSTR-Char with len=1, above it in a BSTR-Char with len=2).

HTH

Olaf