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: 55
Default Perplexed

I am running Excel 2000. I have posted variations of this question off and
on for several weeks and no one has offered a workable soulution. Here is a
simple code:

Dim Srt As Range
Set Srt = Sheets("Code").Range("P2")
Selection.AutoFilter Field:=7, Criteria1:=Srt

Field 7 ties to a column of data filled with dates. Range P2 is one of
those dates. The data filters but everything is hiden??? If I change one
value in field seven to text instead of a date (say the word Joe) and change
Rane P2 to ("Joe") then the table autofilters and displays the data filtered
by the Joe criteria.

I am perplexed. Why won't this code work correctly with a date? How can I
fix this. I need this to work badly.
 
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



All times are GMT +1. The time now is 03:27 AM.

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

About Us

"It's about Microsoft Excel"