Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
J Engineer
 
Posts: n/a
Default How do I define "contains' as the default custom filter?

How do I define "Contains" as the default custom filter criteria or make it
fist in the pulldown choice?
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I don't think you can.

But you can use equals and then do some typing:

equals *engineer*
is equivalent to contains engineer

equals *eer
(ends with eer)

equals eng*
(starts with eng)

(I find typing quicker than using that too small dropdown--just a bit larger to
make it fit all the options and it would have been nicer.)

J Engineer wrote:

How do I define "Contains" as the default custom filter criteria or make it
fist in the pulldown choice?


--

Dave Peterson
  #3   Report Post  
Gord Dibben
 
Posts: n/a
Default

J

You can't.

The next best is to have a macro such as below. No error trapping.

Sub contains()
Dim Rng As Range
Set Rng = Application.InputBox(prompt:="Select Column to Filter", _
Title:="Auto Filter", Type:=8)
pick = InputBox("enter a value or string." & Chr(13) _
& " Wildcards * can be used")
Rng.AutoFilter
Rng.AutoFilter Field:=1, Criteria1:=pick, Operator:=xlAnd
End Sub


Gord Dibben Excel MVP

On Wed, 14 Sep 2005 11:51:01 -0700, "J Engineer" <J
wrote:

How do I define "Contains" as the default custom filter criteria or make it
fist in the pulldown choice?


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
Can we have custom Column headers instead of default Srini Excel Worksheet Functions 1 September 7th 05 07:22 PM
Setting and KEEPING the default chart redbelly Charts and Charting in Excel 0 June 30th 05 02:35 PM
Custom Auto Filter default setting should be contains dmc Excel Worksheet Functions 0 June 14th 05 07:54 AM
Custom Views in Shared workbook Jo Winchester Excel Discussion (Misc queries) 1 May 25th 05 05:58 PM
How to revert back to default color palatte from custom Carole O Excel Discussion (Misc queries) 1 April 6th 05 07:00 PM


All times are GMT +1. The time now is 07:26 PM.

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"