VBA Declaring and assigning strings Declare a variable-width string variable


Example

Dim surname As String 'surname can accept strings of variable length
surname = "Smith"
surname = "Johnson"