Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default AutoFilter returning All Rows

I have a criteria range that looks like below:
Active Class-1 Class-2 Class-3 Class-4 Class-5
Y 10
Y 10
Y 10
Y 10
Y 10

This criteria range(A1:F6) returns ALL rows.
If I set the criteria to (A1:E5), it works just fine and returns the rows
with Active=Y and a 10 in any of the Class-x columns.
Is there some limitation on the size of a criteria range?

Here is the filter command:
Range("customer_db").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("LB_Criteria"), _
CopyToRange:=Range("LB_Extract"), Unique:=False


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default AutoFilter returning All Rows

I found the problem:
The Class-5 column in the "Customer_db" was named Class_5 (underscore
instead of dash)

Sorry for the premature posting.
....jz

"Jim Zeeb" wrote:

I have a criteria range that looks like below:
Active Class-1 Class-2 Class-3 Class-4 Class-5
Y 10
Y 10
Y 10
Y 10
Y 10

This criteria range(A1:F6) returns ALL rows.
If I set the criteria to (A1:E5), it works just fine and returns the rows
with Active=Y and a 10 in any of the Class-x columns.
Is there some limitation on the size of a criteria range?

Here is the filter command:
Range("customer_db").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("LB_Criteria"), _
CopyToRange:=Range("LB_Extract"), Unique:=False


Reply
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
Returning the first 4 rows of a table Dom Excel Discussion (Misc queries) 1 December 23rd 08 10:33 AM
Returning matches from mutiple rows Sunshine Excel Worksheet Functions 4 March 30th 08 10:10 PM
Returning cells with the same value in a column, but on different rows. [email protected] Excel Worksheet Functions 1 May 30th 07 10:17 PM
xlodbc returning no rows & no errors Boultonsj Excel Programming 3 October 7th 04 10:57 AM
Returning the Number of Rows in a Recordset Alex[_14_] Excel Programming 2 November 1st 03 11:14 AM


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