Not really. I don't use the extended functions you're using, so I'm showing you how to get a part of your code replaced by a loop where you insert a variable string in where before you had a static string.
The . . . part is where you will need to adapt your code, shouldn't be a lot of adaptation, to use the variable as I've demonstrated.
It's not clear just by reading it what your DO....LOOP is actually doing.
Bookmarks