Skip to content

Instantly share code, notes, and snippets.

@jrwarwick
Created May 19, 2021 19:51
Show Gist options
  • Save jrwarwick/7d9ffa6ae3183044f0870ad5d74b7b7a to your computer and use it in GitHub Desktop.
Save jrwarwick/7d9ffa6ae3183044f0870ad5d74b7b7a to your computer and use it in GitHub Desktop.
Simple quick and dirty hex dump of a string in VBE for debugging ugly hacks
'Quick and dirty hexdump of a string for debugging stuff
' Convert string to bytes
Dim subjectSring As String
Dim abData() As Byte
'read in suspect string into subjectSring here...
abData = StrConv(subjectSring, vbFromUnicode)
For i = 0 To UBound(abData)
Debug.Print Hex(abData(i)); "='" & Chr(abData(i)) & "'"
Next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment