Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Kia Ora from NZ
I would like a macro that filters out rows depending on todays date - i.e. one that will show all the rows, if they have the present date in a particular column. I've managed this much on my own .... Sub ShowAllOverdueFiles() ' ' ShowAllOverdueFiles Macro ' Macro recorded 29/01/2006 by Mike ' ' Selection.AutoFilter Field:=6, Criteria1:="<" & Range("V1").Value, Operator:=xlAnd Range("a2").Select End Sub However, when I run that, all my rows disappear. BUT, if I go to the Custom Autofilter option, the autofilter is there for today's date, and it works when you press OK. I guess I just need to know how the macro can execute itself, right through to the end! Many thanks in advance! Mike |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy/Paste in Autofilter | Excel Discussion (Misc queries) | |||
Autofilter not working correctly... | Excel Discussion (Misc queries) | |||
AutoFilter - non adjacent columns | Excel Discussion (Misc queries) | |||
Using AutoFilter with worksheet protection in 2000 vs. 2003 | Excel Discussion (Misc queries) | |||
Strange Results with Autofilter | Excel Discussion (Misc queries) |