Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Customizing the autofilter dropdown

When you select the autofilter, the drop down list is created from the unique data in that column. Is there any way to customize this list, so the changes are permanent

For instance, I might have in one(1) column the following 4 row entries

red, blue, green (all are single cell entries
red, blu
re
blue, gree

I want my drop down list to read

re
blu
gree

instead of

red, blue, green
red, blu
re
blue, green (like normal autofilter dropdown choices

If I chose red from the drop down list, the filter would then search every cell in that column containing "red" . The list of "red" "blue" and "green" will be maintained somewhere on the spreadsheet. Thanks for any help to program this with VBA
-Ron
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default Customizing the autofilter dropdown

You can't customize the way the drop-down shows values, it must show a list
of unique values. However, you can choose "Custom" from the drop-down. From
there you can choose from a list of comparisons to filter with. For example
choose "Contains" and enter "red".
Record macro as you do it once to see how the comparison is written.

Mike F
"ron_m" wrote in message
...
When you select the autofilter, the drop down list is created from the

unique data in that column. Is there any way to customize this list, so the
changes are permanent?

For instance, I might have in one(1) column the following 4 row entries:

red, blue, green (all are single cell entries)
red, blue
red
blue, green


I want my drop down list to read:

red
blue
green

instead of:

red, blue, green
red, blue
red
blue, green (like normal autofilter dropdown choices)

If I chose red from the drop down list, the filter would then search every

cell in that column containing "red" . The list of "red" "blue" and "green"
will be maintained somewhere on the spreadsheet. Thanks for any help to
program this with VBA.
-Ron



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Customizing the autofilter dropdown

Thanks Mike. Is it possible to build a filter functionality (similar to the Autofilter) from "scratch" and then populate the dropdown criteria as you wish?
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
Autofilter dropdown box width Daniel Excel Discussion (Misc queries) 1 January 8th 10 08:54 AM
Autofilter Dropdown Nonfunctional Ben Excel Discussion (Misc queries) 0 August 7th 06 07:11 PM
custom autofilter dropdown Anubis Setting up and Configuration of Excel 1 June 25th 06 08:16 AM
AutoFilter Dropdown Boxes Missing Dave Peterson[_3_] Excel Programming 0 July 9th 03 04:29 AM


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