Public Function DumpText(ByVal Text As String) As String Dim P As Long Dim S As String Dim A As Integer For P = 1 To Len(Text) A = Asc(Mid$(Text, P, 1)) S = S & Right$("0000" & Hex(A), IIf(A And &HFF00, 4, 2)) Next DumpText = S End Function