Try this:
Sub RunMe()
Dim ws1 As Worksheet: Set ws1 = Sheets("Sheet1")
Dim ws2 As Worksheet: Set ws2 = Sheets("Sheet2")
Dim LR As Long, LC As Long
Dim rCell As Range, rSearch As Range, str1Find As Range, str2Find As Range
Dim str1 As String, str2 As String
LR = ws1.Range("A" & Rows.Count).End(xlUp).Row
LC = ws1.UsedRange.Columns.Count
str1 = ws1.Range("D1").Value
str2 = ws1.Range("E1").Value
For Each rCell In ws1.Range("A2:A" & LR)
Set rSearch = rCell.Resize(1, LC + 1)
Set str1Find = rSearch.Find(What:=str1, LookIn:=xlValues, Lookat:=xlPart)
Set str2Find = rSearch.Find(What:=str2, LookIn:=xlValues, Lookat:=xlPart)
If Not str2Find Is Nothing And Not str1Find Is Nothing Then
rCell.EntireRow.Copy Destination:=ws2.Range("A" & Rows.Count).End(xlUp).Offset(1, 0)
End If
Next rCell
End Sub
Bookmarks