Dim x As Byte, mystr As String
mystr = "adcde"
For x = 1 To 5
Debug.Print mystr
mystr = Mid(mystr, x + 1, 1) & Left(mystr, x) & Right(mystr, Abs((Len(mystr) - (x + 1))))
Next
could do something similar using replace function and instr
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.