For each row item in the range, add different number of rows according to the data in the row
As the second activity adds rows to the range, the range that the ‘for each’ function is in for the next row item, is not based on the updated range. The data for the lower parts of the range is ‘out of the range’ as the previous row items add in rows to the excel.
It wont…keep a separate counter and initialize with zero or the first row value 2…then. In the loop for each loop add 1 and also when you add say x rows add x to the counter…so that you know currently which row to read or what is the exact current row after adding the row