Good Morning,
Can someone please look in and spot the problem. Basixcally what I'm trying
to do here is to filter a range of dates.
But what actually happens when I run this code is that the Excel filters for
"From1" and "To1" literally (as text/string) and not for values stored in
these range variables.
Solution Please.....
Sub Macro3()
Dim From1, To1 As Range
With Application
.Calculation = xlManual
.MaxChange = 0.001
End With
Set From1 = Worksheets("Individual").Range("E45")
Set To1 = Worksheets("Individual").Range("K45")
Sheets("Quality Check Log").Select
Range("A3").Select
Selection.AutoFilter Field:=1, Criteria1:=">=From1", Operator:=xlAnd,
Criteria2:="<=To1"
End Sub
--
Thanks,
Girish
Bangalore, India
Bookmarks