I am not sure how to manipulate the following code to loop through visible cells. I currently have a filter, but the For loop is checking every cell instead of visible (filtered data):
lRow = ActiveCell.Row
For lRow = LasrRowMax To 2 Step -1
If Cells(lRow, "DP").Value = "YES" Or Cells(lRow, "DP").Value = "NO" Then
Cells(lRow, "DJ").Value = Cells(lRow, "DP").Value
End If
Next
lRow = ActiveCell.Row
For lRow = LasrRowMax To 2 Step -1
If Cells(lRow, "DP").Value = "YES" Or Cells(lRow, "DP").Value = "NO" Then
Cells(lRow, "DJ").Value = Cells(lRow, "DP").Value
End If
Next