LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 325
Default Recording a filter which then doesn't work.

Good afternoon, all

I recorded the following action, to filter my databae to show rows whe the
Date field contained a date between 21/10/05 and 20/11/05.

Sub Macro7()
Selection.AutoFilter Field:=1, Criteria1:="=21/10/2005",
Operator:=xlAnd _
, Criteria2:="<=20/11/2005"
End Sub


As I recorded, the filter operation worked OK, but when I remove the filter,
then run the macro again, the database filters out ALL rows so that only the
firld headers are displayed.
Can anyone suggest why?

Thanks in advance

pete
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
I do statistical work. Recording numbers in notes, Skip[_2_] Excel Worksheet Functions 1 November 23rd 11 10:34 AM
I do statistical work. Recording numbers in notes, Skip[_2_] Excel Worksheet Functions 1 November 22nd 11 07:28 PM
How do I make the Stop Recording bar pop up when recording macros J Excel Worksheet Functions 1 January 10th 06 08:46 PM
Macro doesn't work but recording it does. Rob Excel Discussion (Misc queries) 2 May 24th 05 06:43 AM
Macro recording does not work properly Office XP beginner Excel Programming 1 October 22nd 03 06:26 PM


All times are GMT +1. The time now is 02:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"