I have amended the title of this a bit as I think I have figured out how to make my macro repeat the correct number of times, but it is adding each result to the end of the same line.
How can I get it to add each result to a new line on the csv file?
Okay, I’ve figured that one out, now for the next step!
I have a macro set up to sourceSearch for a word, and store the count in the variable “count”
I have managed to use a loopcounter, incrementing by +1 each run, and stopping when it greater than the number in the count variable.
The problem is, for each loop, it only returns the first result. So if I get 63 instances of “brand” in the source code, it returns the first instance 63 times.
I have tried using:
sourceExtract *brand*@POS=${!LOOP} in the hope it will increment each instance along with the loopcounter, but that returns #nomatch 63 times