Sub GetLength() Dim MyString As String Dim StringLength As Integer MyString = "Hello World" StringLength = Len(MyString) MsgBox StringLength End Sub