Try this one
Option Explicit
Sub CopyData()
Dim Lr1 As Long, DDate As Date, Counter As Long, ms As Worksheet
Application.ScreenUpdating = False
Set ms = Sheets("Last month only")
DDate = Date - 31
With Sheets("Data Washed")
Lr1 = .Cells(Rows.Count, "E").End(xlUp).Row
For Counter = 2 To Lr1
If Not IsError(.Cells(Counter, "E")) Then
If .Cells(Counter, "E").Value > DDate Then
.Cells(Counter, "A").Resize(, 8).Copy
ms.Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial xlValues
End If
End If
Next Counter
Application.CutCopyMode = False
End With
ms.Columns.AutoFit
Application.ScreenUpdating = True
End Sub
Bookmarks