Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Helo,
I have a macro running to filter a series of values and works fine so far. However, I need to filter a column of dates and only need to select records with the most recent date (I can't make the field = NOW() to get current date as the records may include today but also may be a few days old. Cells.Select Selection.AutoFilter Selection.AutoFilter Field:=4, Criteria1:="HHP" Selection.AutoFilter Field:=3, Criteria1:="Open" Selection.AutoFilter Field:=2, Criteria1:="2007/06/14 21:00" ' this is the most current right now - so may change day to day Range("A171:AV171").Select Selection.Copy Sheets("Sheet2").Select ActiveSheet.Paste Selection.Columns.AutoFit Many thanks John |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Customize filter for the date column | Excel Discussion (Misc queries) | |||
Filter date in macro | Excel Discussion (Misc queries) | |||
i NEED TO PULL OUT THE MOST RECENT DATE FROM A COLUMN- | Excel Worksheet Functions | |||
Display value in same row of most recent date in a different column | Excel Programming | |||
How to find the most recent date in a column based on other column | Excel Worksheet Functions |