Getting the unicode value of a char in VB

unicode, vba

Solution

What about AscW ?

Problem

How can I get the unicode value of a char? For example, I know that I can do this with ascii: ``` i = Asc("a") // i == 97 (correct) ``` What if I have a unicode char though? ``` i = Asc("•") // i == 149 (incorrect... should return 8226) ``` Obviously the second example doesn't work since that character is not in the Ascii set. Is there an equivalent function that I can use which will return `8226` instead of the incorrect result `149`? I'm doing this in Outlook 2003, if that makes any difference.

Original source