LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 331
Default I'm loosing it: rows in filter

Tom, yes correct. I had to concatenate.

"Tom Ogilvy" wrote:

Hard to tell. But in your second part of the macro, you set E2 to the Value
of Target, then filter on F1:F2. That seems strange.


--
Regards,
Tom Ogilvy


"Greg" wrote in message
...
I have an advanced filter range of: $a$20:$P$352 and use the following to
query the results:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim r As Long
Dim l As Long
If Target.Count 1 Then Exit Sub
If Target.Address = "$C$16" Then
If ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
r = Cells(Rows.Count, 1).End(xlUp).Row
If Target.Value = Sheets("Lists").Range("$A$1").Value Then
Sheets("Lists").Range("$C$2").Value = ""
Else
Sheets("Lists").Range("$C$2").Value = Target.Value
End If
Range("$a20:$P" & r).AdvancedFilter Action:=xlFilterInPlace, _
CriteriaRange:=Sheets("Lists").Range("$C$1:$C$2"), Unique:=False
End If
If Target.Address = "$I$16" Then
If ActiveSheet.FilterMode Then
ActiveSheet.ShowAllData
End If
l = Cells(Rows.Count, 1).End(xlUp).Row
If Target.Value = Sheets("Lists").Range("$D$1").Value Then
Sheets("Lists").Range("$E$2").Value = ""
Else
Sheets("Lists").Range("$E$2").Value = Target.Value
End If
Range("$a20:$P" & l).AdvancedFilter Action:=xlFilterInPlace, _
CriteriaRange:=Sheets("Lists").Range("$f$1:$f$2"), Unique:=False
End If
End Sub
The query is based on a column of dates by day and I'm querying to display
based on the month I choose. January won't display..instead goes to line

353
and won't let me scroll up....
All the other months work swell.
Any advice? Thanks, Greg






 
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
Filter by Rows?? erriac Excel Discussion (Misc queries) 2 April 16th 09 09:23 AM
Advanced Filter - filter rows < jaws4518 Excel Discussion (Misc queries) 3 November 1st 06 05:48 PM
filter on the rows shlomop Excel Discussion (Misc queries) 2 September 13th 05 06:51 PM
how can i filter from two rows? Ali Excel Discussion (Misc queries) 1 December 20th 04 08:19 PM
Filter Rows Boba Excel Programming 1 February 8th 04 03:07 PM


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