Sub MyCopyMacro()
Dim crit As String
Dim tbl As String
' Delete current data on Sheet2
Sheets("Sheet2").Activate
Range("A1").CurrentRegion.Delete
' Copy over data from Sheet1
Sheets("Sheet1").Activate
Range("A1").CurrentRegion.Copy
Sheets("Sheet2").Activate
Range("A1").Select
ActiveSheet.Paste
Application.CutCopyMode = False
' Get name of table just added to sheet 2
tbl = Sheets("Sheet2").ListObjects(1).Name
' Build crtieria row for 60 days in the past
crit = "<" & Format(Date - 60, "m/d/yyyy")
' Apply filter to table
ActiveSheet.ListObjects(tbl).Range.AutoFilter Field:=7, Criteria1:=crit, Operator:=xlAnd
' Delete hidden rows
DeleteHiddenRows
End Sub
Public Sub DeleteHiddenRows()
Dim lRows As Long
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
For lRows = ActiveSheet.UsedRange.Rows.Count To 1 Step -1
If Cells(lRows, 1).EntireRow.Hidden = True Then Cells(lRows, 1).EntireRow.Delete
Next lRows
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
End Sub