View Single Post
 
Old 02-20-2017, 11:50 AM
NoSparks NoSparks is offline Windows 7 64bit Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Location: British Columbia, Canada
Posts: 842
NoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of lightNoSparks is a glorious beacon of light
Default

Oh... now I understand why filter, try this
Code:
Sub Filter_For_Last_Date()
    Dim lr As Long
With Sheets("Sheet1")
    lr = .Cells(Rows.Count, "A").End(xlUp).Row
    .Range("A2:A" & lr).AutoFilter Field:=1, Operator:=xlFilterValues, Criteria1:="=" & .Cells(lr, 1).Value
End With
End Sub
Reply With Quote