Norie,
Both of your codes are right, but the first code should use the last row in entire data as you are evaluating all columns. So to make sure that you capture all data in all columns, you look for other columns with last row data.
My point was based on OP's code testing column C.
I still do not see why the code needs to find the last row in other columns while you are testing column C.
E.g may help.
I have data in column C in rows 2 and 3.
Now, If I were to use the LR, the code loops until the last row in the data, while LR1 stops at row 3, which is the point.
Why the code needs to loop through the longest row, while there are no data in column after row 3 to test.
The code should stop looping at the last row in column C, which is row 3.
I hope you get my point.
Bookmarks