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: 1
Default Filter set in macro filters all values out

The following small macro results in no rows showing in the auto filtered
table. If I open the custom the filter dialog then click on OK the expected
rows are shown. I am using excel 2003.
Any ideas?

Sub Due14()
'

' filter for next status change due in next 14 days
'
B4next$ = "<" + Format(Now() + 14, "short date")
Selection.AutoFilter Field:=17, Criteria1:=B4next$

End Sub

 
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
AFTER I SORT AND FILTER A WORKSHEET CAN I DELETE THE FILTERS Angela Excel Worksheet Functions 1 January 26th 10 06:08 PM
Are Date filters available for items in the Filter area of pivot t SHW Excel Discussion (Misc queries) 2 November 27th 08 01:56 AM
Travelling cell values with filter in Excel macro. Nagarajan Excel Programming 1 February 23rd 07 01:09 AM
Excel's filters should give the option to filter duplicate cells. donaldwallace Excel Discussion (Misc queries) 0 September 21st 06 04:48 PM
filters how do i keep the display list empty until filter applied Beewfc Excel Discussion (Misc queries) 1 April 10th 06 01:08 PM


All times are GMT +1. The time now is 09:14 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"