VBA Assigning strings with repeated characters
Use the String function to assign a string with n repeated characters
Dim lineOfHyphens As String
'Assign a string with 80 repeated hyphens
lineOfHyphens = String$(80, "-")
Dim lineOfHyphens As String
'Assign a string with 80 repeated hyphens
lineOfHyphens = String$(80, "-")
In this page (written and validated by A. Gawali) you learned about VBA Assigning strings with repeated characters . What's Next? If you are interested in completing VBA tutorial, your next topic will be learning about: VBA Use the String and Space functions to assign an n character string.
Share On: |