Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default Autofilter multiple columns

I need to filter 2 columns (from about 30) using VBA
Select Client (drop down box) &/or Select Contractor (drop down box)

I can select on either one using
Range("client").Select
Selection.AutoFilter Field:=1, Criteria1:="*" & Range("$J$4") & "*"

but how do I select for combined Client 1 & Contractor A
We have an issue with either multi client or multi contractors on same
project
hence wildcard. I have tried:
Range("contractor").Select
Selection.AutoFilter Field:=1, Criteria1:="*" & Range("$j$2") & "*",
Operator:=xlAnd
Range("client").Select etc - but no luck
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 184
Default Autofilter multiple columns

Hi Saintsman,

add one dummy column where you combine criteria 1 and 2 to one singel
criteria.

arno

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default Autofilter multiple columns

arno
thanks for the effort - not really what I wanted to do
managed to solve immediate issue


"arno" wrote:

Hi Saintsman,

add one dummy column where you combine criteria 1 and 2 to one singel
criteria.

arno


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
Filtering Multiple Columns tj Excel Worksheet Functions 9 October 17th 06 05:09 PM
Matching Multiple Columns [email protected] Excel Worksheet Functions 4 October 1st 06 06:18 AM
Selecting different multiple columns rcg Excel Worksheet Functions 1 September 26th 06 05:58 PM
Multiple Columns to Single Columns [email protected] Excel Discussion (Misc queries) 3 September 7th 06 05:33 AM
AutoFilter - non adjacent columns Richard Excel Discussion (Misc queries) 4 August 15th 05 12:15 PM


All times are GMT +1. The time now is 02:03 PM.

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"