Function dec2hex2(ByVal textString As Integer) As String
Dim hexequiv(0 To 15) As String*1 = {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"} Return hexequiv((textString Shr 4) And &HF) + hexequiv(textString And &HF) End Function