We can create a simple custom function like this
Function RepeatString(Byval AString As String, byval Times As Long)
If AString = vbNullString Or Times < 0 Then RepeatString = CVErr(xlErrNA): Exit Function
Dim i As Long
Dim result As String
For i = 1 To Times
result = result & AString
Next
RepeatString = result
End Function
Or use String function to return repeating character strings of the length specified.
Dim MyString
MyString = String(5, "*") ' Returns "*****".
MyString = String(5, 42) ' Returns "*****".
MyString = String(10, "ABC") ' Returns "AAAAAAAAAA".