ar and rw are Ranges.

The outer loop is looping through all the visible areas in the range "$A$1:$A" & lrSource, ie all the visible areas in column A.

The inner loop is looping through all the rows in each of those areas.