Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
i set up a macro below to filter out a column (dates) that are more than cell F2, where cell F2 is also a date. But it just doesn't work. Why? Thanks! Sub Filter_BS() Selection.AutoFilter Field:=7, Criteria1:="" & Range("f2"), Operator:=xlAnd End Sub Val |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I'd try:
Selection.AutoFilter Field:=7, _ Criteria1:="" & format(Range("f2").value,"mm/dd/yyyy") But match the numberformat of the dates in that field. Dolphinv4 wrote: Hi, i set up a macro below to filter out a column (dates) that are more than cell F2, where cell F2 is also a date. But it just doesn't work. Why? Thanks! Sub Filter_BS() Selection.AutoFilter Field:=7, Criteria1:="" & Range("f2"), Operator:=xlAnd End Sub Val -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Filter macro doesn't like link | Excel Discussion (Misc queries) | |||
Dupliate names with different date Filter for newest date | Excel Discussion (Misc queries) | |||
how can this filter be done in a macro? | Excel Discussion (Misc queries) | |||
Do i use a filter or a macro? | Excel Discussion (Misc queries) | |||
Need a filter macro | Excel Discussion (Misc queries) |