My "A" cell text contains "doggy" "doga" etc and i wish i can delete the rows. But the below code can only delete the row with the exact name. Pls help.
Sub Macro1()
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR
If Range("A" & i) = "dog" Then
Range("A" & i).EntireRow.Delete
End If
Next i
End Sub
Sub Macro1()
LR = Range("A" & Rows.Count).End(xlUp).Row
For i = 1 To LR
If Range("A" & i) = "dog" Then
Range("A" & i).EntireRow.Delete
End If
Next i
End Sub