Len Function
Returns the number of characters in a string, or the number of bytes that are required to store a variable.
Syntax:
Dim stext As String
рд╡рд╛рдкрд╕реА рдореВрд▓реНрдп:
Long
рдкреИрд░рд╛рдореАрдЯрд░
Text: Any string expression or a variable of another type.
рдЙрджрд╛рд╣рд░рдг:
Sub ExampleLen
Dim sText as String
sText = "Las Vegas"
MsgBox Len(sText) REM Returns 9
End Sub