Assigning strings with repeated characters

Download vba eBook


There are times you need to assign a string variable with a specific character repeated a specific number of times. VBA provides two main functions for this purpose:

  • String/String$
  • Space/Space$.

Related Examples


20 Contributors: 1
Monday, July 25, 2016
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial:

Download eBook