Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Comparing two columns , and giving comparison results in a third. | Excel Worksheet Functions | |||
TRUNC zero giving odd results? | Excel Worksheet Functions | |||
Very large workbook now giving incorrect results :( | Excel Discussion (Misc queries) | |||
Equation giving unexpected results | Charts and Charting in Excel | |||
GetAttr giving unexpected results | Excel Programming |