Visual Basic: String Multiplication / SendKeys?

So, I have something like this:

SendKeys.send("blah" + "{BS}")

      

and I want to reuse "{BS}" multiple times, for example have a variable that I could multiply with "{BS}" to have some backspace, how would I do that?

I know it can be done in Python simply:, "string" * variable

just not sure how to do it in VBA.

+3


source to share


1 answer


By sending the same key multiple times you are trying to add a number inside the brackets



Application.SendKeys "{BS 6}

      

+1


source







All Articles