Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Numerous OR criteria in a Filtered Macro

Hi All!

I am trying to dump records from one worksheet into another, but am trying
to look for 8 different OR's in one go, as I would like the data to be pasted
as one block.

I have used so far:

Selection.AutoFilter
Selection.AutoFilter Field:=3, Criteria1:="*andy*", Operator:=x1Or, _
Criteria2:="*bob*", Operator:=x1Or, _
Criteria3:="*kat*", Operator:=x1Or, _
Criteria4:="*paul*", Operator:=x1Or, _

and so on .....


Being the dunce that I am, it doesn't work - any help or paracetomol would
be greatly appreciated.

Thanks

Andy
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Numerous OR criteria in a Filtered Macro

try using the 'Advanced Filter' under Tools \ Filter rather than the
'Autofilter' option.

Rob

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Numerous OR criteria in a Filtered Macro

Here's a thought. Put this formula in D2

=OR(D2={"bob","andy","paul"})

and copy down, then filter on TRUE

Selection.AutoFilter
Selection.AutoFilter Field:=4, Criteria1:="TRUE"

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Andy Wilkinson" <Andy wrote in message
...
Hi All!

I am trying to dump records from one worksheet into another, but am trying
to look for 8 different OR's in one go, as I would like the data to be

pasted
as one block.

I have used so far:

Selection.AutoFilter
Selection.AutoFilter Field:=3, Criteria1:="*andy*", Operator:=x1Or, _
Criteria2:="*bob*", Operator:=x1Or, _
Criteria3:="*kat*", Operator:=x1Or, _
Criteria4:="*paul*", Operator:=x1Or, _

and so on .....


Being the dunce that I am, it doesn't work - any help or paracetomol would
be greatly appreciated.

Thanks

Andy



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
several links to filtered list each with differenct criteria David_GH New Users to Excel 1 February 6th 08 08:59 PM
Numerous criteria in sumproduct adimar Excel Worksheet Functions 4 January 29th 08 07:03 PM
Problem in sending filtered data to numerous/different locations sukumar About this forum 0 January 17th 07 11:21 AM
Count Filtered Visible Items that Match Numeric Criteria between two ranges Sam via OfficeKB.com Excel Worksheet Functions 4 September 20th 06 06:39 PM
How can I count cells that meet two criteria within a filtered co. lizzzy Excel Worksheet Functions 1 January 21st 05 06:03 PM


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