I am trying to find the cells value "Details" and delete that row along with the 3 rows below it.
The code I current have works but once there are no longer any cells with "Details", I get the error box asking me to end the macro or debug.
How do I fix current code and eliminate the error message box from popping up.
My current code is below.
Dim StartRange As String
Dim EndRange As String
For Each Cell In ActiveSheet.Range("A1:A1000")
Cells.Find(What:="Details").Select
StartRange = ActiveCell.Address
Selection.Offset(3, 75).Select
EndRange = ActiveCell.Address
ActiveSheet.Range(StartRange & ":" & EndRange).Select
Selection.EntireRow.Delete
Next Cell