Is it posible to update the for loop condition?
I need to loop from row 1 to lastrow of one sheet, when a condition is meet I need switch sheet and loop to end of that sheet.
Just for demo:
lr = 5
For i = 1 To lr
If i = 3 Then
lr = 500
i = 50
End If
Next i
This code ends at i=51
because the for loop has not updated it's condition before it ends at the Next i
.
Can this be solved some how?