I want to repeat the loop, variable times. But it is keep on repeating infinite times.
I have attached the macro below, Please take a look into it.
initial.kmmacros (3.3 KB)
hello @hiren4776 welcome to the forums. For the future it is easiest to help with a screen shot and some more info:
Tip: How Do I Get The Best Answer in the Shortest Time?
Summary:
The better quality and more complete the information you post about your issue, the quicker we can give you a useful answer.
Tell us your complete workflow along with your end-objective up front – do not spoon-feed it to us one post at a time -- i.e. don't waste your time or ours.
At the very least provide a summary of what you're doing.
By having a more complete picture of your task we can often suggest more efficient me…
I downloaded your macro:
Instead of a For Each
action, try a Repeat
action.