Hi,
I have a user who makes quite extensive use of the autofilter facility.
He has a problem when using a combination of filters for a number of columns, that when a column is filtered the arrow on the control changes to a dark blue colour.
He then has difficulty in seeing which columns have filters applied and which columns do not.
Can the ‘filtered’ colour be changed to something other than dark blue?
Can the ‘arrow’ object’s size be increased so that the default dark blue colour is more prominent?
Can the shape of the ‘arrow’ object be changed when a filter is applied?
Any suggestion greatly received.
Regards
Zinger
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Auto filter spinner controls (Excel 2003)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Auto filter spinner controls (Excel 2003)
- This topic has 42 replies, 10 voices, and was last updated 17 years, 3 months ago.
AuthorTopicWSzinger
AskWoody LoungerOctober 5, 2006 at 5:02 am #435912Viewing 3 reply threadsAuthorReplies-
WSHansV
AskWoody LoungerOctober 5, 2006 at 6:41 am #1031802I’m sorry, the shape and color of the arrow are hard-coded, as far as I know there is no way to alter them.
The dropwdown arrow can be made a little bit larger (but not much) by changing the zoom percentage at which the sheet is viewed to 125% (the size doesn’t increase further for larger zoom percentages). -
WSrory
AskWoody LoungerOctober 5, 2006 at 8:26 am #1031810(Edited by rory on 05-Oct-06 10:26. [Version 1.3 (already): made the defined name local to the sheet so you can have more than one autofiltered sheet in a workbook.])
The workaround I usually use is to have the header cell of the filtered column(s) highlighted. I’ve just dropped the code I use into an add-in, which I am attaching to this post, which you can try out. It’s a bit rough and ready but the code is unprotected so feel free to alter it or let me know if there are any particular issues with it.
HTH -
WSHansV
AskWoody LoungerOctober 5, 2006 at 8:15 am #1031813Hi Rory,
That’s a nice add-in!
I have one remark: in the SetHilites procedure, you conditionally set the caption of the toolbar button to “Highlight Filters”, but at the end, you set it to “Clear filter highlights” unconditionally. Shouldn’t this last statement be moved to just above Else?
-
WSrory
AskWoody LoungerOctober 5, 2006 at 8:21 am #1031815Hans,
I’ve just this second posted a revised version using a new toolbar with a Set Highlights and a Clear Highlights button. It dawned on me that if you had two workbooks open with autofilters, you couldn’t switch from one to the other and apply the highlighting if there’s only one button. Hopefully this version is a little better! (I did say it was rough and ready…)
-
WSHansV
AskWoody Lounger -
WSrory
AskWoody LoungerOctober 5, 2006 at 8:29 am #1031817 -
WSHansV
AskWoody Lounger -
WSrory
AskWoody Lounger -
WSzinger
AskWoody Lounger -
WSzinger
AskWoody LoungerOctober 11, 2006 at 10:45 am #1032752The user is extremely happy, however he did get caught out with the colour picker control, in that he selected a colour but didn’t exit it with either the Ok or Cancel and then experienced some intermittent issues in Excel.
Can the ‘colour picker’ retain the focus until you either click OK or Cancel?
Regards
Zinger -
WSHansV
AskWoody LoungerOctober 11, 2006 at 11:37 am #1032764If all your users have Excel 2002 (XP) or later, you can change the line
cc.hwndOwner = 0
to
cc.hwndOwner = Application.Hwnd
in the ShowColor function in basColour. This will make the Excel application window the ‘owner’ of the colour dialog. The user won’t be able to click in the Excel window while the dialog is open.
-
WSsteve_skelton13
AskWoody Lounger -
WSHansV
AskWoody LoungerNovember 1, 2007 at 10:57 pm #1082071Rory’s version in post 605,725 uses the color picker code I proposed, and he added other enhancements. He has re-posted the attachment recently.
-
-
-
-
-
WSbraddy60
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSbraddy60
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSbraddy60
AskWoody Lounger -
WSbraddy60
AskWoody LoungerOctober 12, 2006 at 4:56 pm #1033074 -
WSHansV
AskWoody LoungerOctober 12, 2006 at 5:46 pm #1033080In the workbook ‘detect filters2.xls’, AutoFilter is present, but no filter has been set, so none of the column headings is coloured. If you have clicked ‘Highlight filters’, and then set a filter on one or more columns (for example, select ‘Alan’ in the dropdown list in A1), the column heading should be coloured.
-
WSbraddy60
AskWoody Lounger
-
-
-
WSHansV
AskWoody LoungerWSrory
AskWoody LoungerOctober 23, 2007 at 1:21 pm #1032938Attached is an add-in which allows you to highlight (with a background and font colour of your choosing) the header cells of any columns in an autofiltered list which currently have filters applied. This makes it easier to see what the current filters are, rather than having to rely on Excel’s built-in colouring of the dropdown arrows, which can be hard to see, particularly in large lists. Special thanks to Hans for his addition of the colour picker options!
Note: the code is unprotected so can be adapted to your own requirements as necessary.WSwittigbg
AskWoody LoungerNovember 7, 2007 at 8:32 pm #1082811-
WSHansV
AskWoody LoungerNovember 7, 2007 at 8:52 pm #1082812The highlighting will be updated as soon as the worksheet is recalculated. Unfortunately, the Show All Data command does not necessarily cause the worksheet to be recalculated. You could force this by creating a macro like this:
Sub ShowAll()
On Error Resume Next
ActiveSheet.ShowAllData
ActiveSheet.Calculate
End Suband assigning this macro to a custom toolbar button.
-
WSwittigbg
AskWoody LoungerNovember 7, 2007 at 9:14 pm #1082817Good information. Interesting that the spreadsheet I tested this on has several Subtotal functions above the filtered list – yet the “Show All” command did not initiate a recalculation (though I suppose Excel is smart enough to keep track of just the cells requiring a recalc).
Again – this is great – thanks to all who developed and contributed.
-
Don Wells
AskWoody LoungerNovember 8, 2007 at 9:22 pm #1082995Hi Rory
The attached file contains couple of recommended changes to position the command bar:The following line was added to ThisWorkbook(Code).Workbook_BeforeClose
SaveSetting "Hilite", "Menu", "Top", .Top
The AddMenuItem procedure was changed
From:With cbr .Enabled = True .Visible = True .Position = GetSetting("Hilite", "Menu", "Position", msoBarFloating) .RowIndex = GetSetting("Hilite", "Menu", "RowIndex", msoBarRowLast) .Left = GetSetting("Hilite", "Menu", "RowIndex", 0) End With
To:
With cbr .Enabled = True .Visible = True .Position = GetSetting("Hilite", "Menu", "Position", msoBarTop) 'msoBarFloating) .RowIndex = GetSetting("Hilite", "Menu", "RowIndex", msoBarRowLast) .Left = GetSetting("Hilite", "Menu", "Left", 0) .Top = GetSetting("Hilite", "Menu", "Top", 0) End With
Don Wells
AskWoody Lounger-
WSHansV
AskWoody LoungerNovember 9, 2007 at 4:00 pm #1083067Hi Don,
I like the addition of the font color, and the dropdown is a good idea!
You forgot to include the code to initialize the colors from the saved settings (if available)
And I don’t understand why you added an optional argument to the AddMenuItem macro – to hide it from the macro list? It might be useful to run the macro manually if the toolbar has been messed up.The attached version initializes the colors properly (and I moved all the “exit” code to DeleteMenuItem).
-
Don Wells
AskWoody Lounger -
Jmacleod
AskWoody LoungerJanuary 31, 2008 at 10:45 am #1095234Hi,
How do I remove hilite filters.xla ?
I have a shared spreadsheet that is a bit unstable and I’m trying to simplify it as much as possible in an attempt to make it more reliable.
I don’t see it on the add-ins list and can’t find any reference to it on the spreadsheet/code, but I still get asked for it every time I load the spreadsheet.
Thanks,
Jim MacLeod -
WSHansV
AskWoody Lounger -
Jmacleod
AskWoody LoungerJanuary 31, 2008 at 11:23 am #1095240Hi, thanks for the suggestions.
I’ve checked the toolbars in View | Toolbars and the “Filter Highlighter” entry is no longer there.
The only ticked references in VBE are : Visual Basic for Applications, Excel 9.0 object library, OLE Automation, Office 9.0 Object library and Forms 2.0 ObjectLibrary. There is no entry for highlight/hilite or anything similar.
JIm
-
WSHansV
AskWoody Lounger -
Jmacleod
AskWoody LoungerJanuary 31, 2008 at 11:45 am #1095245 -
WSHansV
AskWoody Lounger -
Jmacleod
AskWoody Lounger -
WSrory
AskWoody Lounger -
WSHansV
AskWoody LoungerJanuary 31, 2008 at 11:35 am #1095244
-
-
Viewing 3 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
How well does your browser block trackers?
by
n0ads
36 minutes ago -
You can’t handle me
by
Susan Bradley
2 hours, 48 minutes ago -
Chrome Can Now Change Your Weak Passwords for You
by
Alex5723
46 minutes ago -
Microsoft: Over 394,000 Windows PCs infected by Lumma malware, affects Chrome..
by
Alex5723
8 hours, 10 minutes ago -
Signal vs Microsoft’s Recall ; By Default, Signal Doesn’t Recall
by
Alex5723
8 hours, 21 minutes ago -
Internet Archive : This is where all of The Internet is stored
by
Alex5723
8 hours, 34 minutes ago -
iPhone 7 Plus and the iPhone 8 on Vantage list
by
Alex5723
8 hours, 39 minutes ago -
Lumma malware takedown
by
EyesOnWindows
15 hours, 53 minutes ago -
“kill switches” found in Chinese made power inverters
by
Alex5723
17 hours, 27 minutes ago -
Windows 11 – InControl vs pausing Windows updates
by
Kathy Stevens
17 hours, 21 minutes ago -
Meet Gemini in Chrome
by
Alex5723
21 hours, 26 minutes ago -
DuckDuckGo’s Duck.ai added GPT-4o mini
by
Alex5723
21 hours, 35 minutes ago -
Trump signs Take It Down Act
by
Alex5723
1 day, 5 hours ago -
Do you have a maintenance window?
by
Susan Bradley
16 hours, 43 minutes ago -
Freshly discovered bug in OpenPGP.js undermines whole point of encrypted comms
by
Nibbled To Death By Ducks
7 hours, 45 minutes ago -
Cox Communications and Charter Communications to merge
by
not so anon
1 day, 8 hours ago -
Help with WD usb driver on Windows 11
by
Tex265
1 day, 14 hours ago -
hibernate activation
by
e_belmont
1 day, 17 hours ago -
Red Hat Enterprise Linux 10 with AI assistant
by
Alex5723
1 day, 21 hours ago -
Windows 11 Insider Preview build 26200.5603 released to DEV
by
joep517
2 days ago -
Windows 11 Insider Preview build 26120.4151 (24H2) released to BETA
by
joep517
2 days ago -
Fixing Windows 24H2 failed KB5058411 install
by
Alex5723
20 hours, 46 minutes ago -
Out of band for Windows 10
by
Susan Bradley
2 days, 5 hours ago -
Giving UniGetUi a test run.
by
RetiredGeek
2 days, 12 hours ago -
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
2 days, 20 hours ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
15 hours, 46 minutes ago -
Auto Time Zone Adjustment
by
wadeer
3 days ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
2 days, 22 hours ago -
Manage your browsing experience with Edge
by
Mary Branscombe
3 hours, 10 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
17 minutes ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.