Sub DeleteRows()
Dim deleteWhat As Variant
Dim lstRw As Long
deleteWhat = InputBox("Delete all rows that contain....?")
lstRw = Range("D" & Rows.Count).End(xlUp).Row
With ActiveSheet.Range("$D$1:$D$" & lstRw)
.AutoFilter Field:=1, Criteria1:="=*" & deleteWhat & "*"
.Offset(1, 0).SpecialCells(xlCellTypeVisible).EntireRow.Delete
.AutoFilter
End With
End Sub