A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
It's a hexadecimal string representing Unicode text. In Unicode, each character takes up 2 bytes; for standard ASCII/ANSI characters, the second byte is 0.
Try this function:
Function CODE2TEXT(s As String) As String
Dim i As Long
Dim n1 As Long
Dim n2 As Long
Dim n As Long
For i = 1 To Len(s) Step 4
n1 = Application.WorksheetFunction.Hex2Dec(Mid(s, i, 2))
n2 = Application.WorksheetFunction.Hex2Dec(Mid(s, i + 2, 2))
n = 256 * n2 + n1
CODE2TEXT = CODE2TEXT & ChrW(n)
Next i
End Function
If you store this function in a module in the workbook where you use it, syntax is
=CODE2TEXT(A2)
If you store it in your Personal.xls (or Personal.xlsb) workbook, the syntax is
=Personal.xls!CODE2TEXT(A2)
For Excel 2007 and later, use Personal.xlsb.
.png?psid=1)