Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Can anyone help me explain why the following code does not work. It appears
to be a bug in Excel 2003. This is a simple spreadsheet that contains a command button that calls a small piece of vba code to do an autofilter on a range of dates. Rows("1:1").Select Selection.AutoFilter Selection.AutoFilter Field:=2, Criteria1:="1/01/2003", Operator:=xlAnd, Criteria2:="<31/03/2003" When the line is executed, it returns no data, however if you manually go into the autofilter drop down the values are there and a simple OK to the dialogue box will return the correct results. The spreadsheet contains the following Record Number Date 1 2/01/2003 2 1/02/2003 3 1/03/2003 4 1/04/2003 5 1/04/2003 6 1/05/2003 The code above should return record numbers 1 thru 3, but it displays no lines of code util you go in manually Am I missing something? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Autofilter Problem | Excel Discussion (Misc queries) | |||
AutoFilter Problem | Excel Discussion (Misc queries) | |||
PROBLEM WITH AUTOFILTER | New Users to Excel | |||
PROBLEM WITH AUTOFILTER | New Users to Excel | |||
Autofilter problem | Excel Worksheet Functions |