I would like to search column "D" and whenever it finds the word "Gone" delete that row.
Why does this not work?
It runs but does nothing.
Sub DeleteOnD()
'Application.ScreenUpdating = False
For LR = Range("D" & Rows.Count).End(xlUp).Row To 2 Step -1
If Range("D" & LR).Value = "Gone" Then Rows(LR).EntireRow.Delete
Next LR
'Application.ScreenUpdating = True
End Sub
Why does this not work?
It runs but does nothing.
Sub DeleteOnD()
'Application.ScreenUpdating = False
For LR = Range("D" & Rows.Count).End(xlUp).Row To 2 Step -1
If Range("D" & LR).Value = "Gone" Then Rows(LR).EntireRow.Delete
Next LR
'Application.ScreenUpdating = True
End Sub