How to stop loop if activity has been performed?

Hi, I have a For Each inside For Each Row in DataTable. In the For Each, I check if the row item contains a keyword that can be found in array of string, then write into cell in different sheet.

I want to make it so that if the row item has been written out, it will stop the For Each loop and continue with the For Each Row in DataTable loop. Not sure how to proceed on this, please advise me thank you.

use break inside if condition to stop the loop

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.