Hi,
I'm looking for some code that will delete the row it is in if the word 'Homework' is found anywhere in column E.
Thank you
Hi,
I'm looking for some code that will delete the row it is in if the word 'Homework' is found anywhere in column E.
Thank you
Try
Change sheet name to match![]()
Sub DelRows2() Application.ScreenUpdating = False With Sheets("Sheet1").Range("E1", Range("E" & Rows.Count).End(xlUp)) .AutoFilter Field:=1, Criteria1:="Homework" .Offset(1).EntireRow.Delete .AutoFilter End With Application.ScreenUpdating = True End Sub
HTH
Regards, Jeff
Hi!
For search us '.Find' , and for deleting the row '.EntireRow.Delete' .
Thanks for the solution
If you are satisfied with the solution(s) provided, please mark your thread as Solved.
New quick method:
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks