Here is my Hex to String function

Hex to String Function Code:
  1. Public Function HexToString(ByVal HexToStr As String) As String
  2. Dim strTemp   As String
  3. Dim strReturn As String
  4. Dim I         As Long
  5.     For I = 1 To Len(HexToStr) Step 3
  6.         strTemp = Chr$(Val("&H" & Mid$(HexToStr, I, 2)))
  7.         strReturn = strReturn & strTemp
  8.     Next I
  9.     HexToString = strReturn
  10. End Function

and here is my String to Hex function

String to Hex Function Code:
  1. Public Function StringToHex(ByVal StrToHex As String) As String
  2. Dim strTemp   As String
  3. Dim strReturn As String
  4. Dim I         As Long
  5.     For I = 1 To Len(StrToHex)
  6.         strTemp = Hex$(Asc(Mid$(StrToHex, I, 1)))
  7.         If Len(strTemp) = 1 Then strTemp = "0" & strTemp
  8.         strReturn = strReturn & Space$(1) & strTemp
  9.     Next I
  10.     StringToHex = strReturn
  11. End Function

I hope they help everyone