I have several special characters in an excel spreadsheet. How do I reference them in Excel VBA?
The characters I need are not in the standard 255 ASCII codes.
I was thinking perhaps Chr(code) would work, but I'm not able to find the codes for the characters I need to test this.
Chr(number) function. The opposite function is calledAsc(string)Sub GetAsciiCodes() Dim i As Long For i = 1 To 255 Range("A" & i) = i Range("B" & i) = Chr(i) Next End SubChrWfunction returns a String containing the Unicode character except on platforms where Unicode is not supported, in which case, the behavior is identical to theChrfunction. ++ > Chr function ++ ++ Use this web to search for unicode. ++ ForChrW, just use the numerics inHTML-code; dont use theUnicode number(idk why).