Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
Firstly, excuse my ignorance in advance to those who make coding in VB look so easy!
Hi everyone Can anyone show me how to filter on a column containing dates in the format of 21/04/59 being (21st April 1959), I set about recording a macro that first put a filter on the worksheet, then I selected the column with dates in and go to custom filter then select "equal to or lesser than" and key in the value 30/09/2005, but all that happens when I run this is I get blank lines ... code below Sub less_than() ' ' less_than Macro ' Macro recorded 07/10/2005 by SGUHT ' ' Keyboard Shortcut: Ctrl+k ' Selection.AutoFilter Range("U1").Select Selection.AutoFilter Field:=21, Criteria1:="<=30/09/2005", Operator:= _ xlAnd End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protect macros? | Excel Discussion (Misc queries) | |||
Remove macros from spreadsheet | Excel Discussion (Misc queries) | |||
Deleting Macros | Excel Worksheet Functions | |||
Problem with running Macros | Excel Discussion (Misc queries) | |||
Excel Display Problem | Excel Discussion (Misc queries) |