VBA Measuring the length of strings
Use the Len function to determine the number of characters in a string
Const baseString As String = "Hello World"
Dim charLength As Long
charLength = Len(baseString)
'charlength = 11
Use the LenB function to determine the number of bytes in a string
Const baseString As String = "Hello World"
Dim byteLength As Long
byteLength = LenB(baseString)
'byteLength = 22