Len
The Len function determines the number of characters in the Str argument. The LenB function determines the number of bytes in the VarName argument.
Syntax
Len(Str)
Str:
A string or expression that can represent a valid text value.
Return Value
Returns a Long.
Related Functions
InStr| Left, Left$| Mid| Right
Example
Dim strTest as String
Dim lngStringLength as Long
strTest = "CitectVBA"
lngStringLength = Len(strTest) ' returns 9