Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Custom filtering in excel 2003 with more than 2 multifilter option

I am working on a macro to filter out a column in Excel 2003. but i am
facing a problem in the Custom option of Auto filter, it can check for only 2
values using And / Or

Selection.AutoFilter Field:=5, Criteria1:="=a",
Operator:=xlOr,Criteria2:="=b"

Is there any way to increase this to more than 2 values?

I have also tried
Selection.AutoFilter Field:=5, Criteria1:="=a", Operator:=xlOr,
Criteria2:="=b", Operator :=xlOr,Criteria3:="=c"

but still no joy.

I have also tried putting the Criteria as an array, as used in excel 2007,
but those dont work in excel 2003

ActiveSheet.Range("$A$1:$AP$437").AutoFilter Field:=2, Criteria1:=Array(
"a", "b", "c") , Operator:=xlFilterValues

Is there any solution for this?
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 114
Default Custom filtering in excel 2003 with more than 2 multifilter option


You can use Advancefilter method using criteria Range in a worksheet.
See more details in VBA Help.

Regards,
Shah Shailesh
http://in.geocities.com/shahshaileshs/
(Excel Add-ins Page)

*** Sent via Developersdex http://www.developersdex.com ***
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
Custom Filtering - Limitations of the "Contains" option Timothyg787 Excel Worksheet Functions 6 June 22nd 08 11:29 PM
help in filtering in excel 2003 glen2351 Excel Discussion (Misc queries) 2 September 11th 07 03:30 AM
Help in Filtering in excel 2003 glen2351 Charts and Charting in Excel 0 September 11th 07 12:20 AM
Excel 2003 Filtering Jrufin Excel Discussion (Misc queries) 5 December 14th 06 12:44 AM
My custom fill color option is not in excel how do i get it worki. parm Excel Discussion (Misc queries) 2 May 3rd 06 01:26 PM


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