I need to replace simple ASCII for Unicode characters in an Excel spreadsheet. For example, turn StΓ₯le into Stale.
In Excel 2013, it works fine. But in Excel 2010, the "?" instead of a problematic character. Any ideas? Note that non-Ascii characters are correctly defined in Excel 2010, but characters are not displayed.
char = Mid(val, i, 1) char_code = AscW(char) If char_code > 127 Then MsgBox ("Problem with " & c.Address & " [" & char_code & "] " & StrConv(ChrW(char_code), vbUnicode)) End If
I also tried just
MsgBox ("Problem with " & char & " " & ChrW(char_code))
Again he worked with Excel 2013, but not Excel 2010.
source share