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 Lounger -
WSrory
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. -
WSStuartR
AskWoody Lounger -
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
-
Windows 11 Insider Preview Build 26100.4188 (24H2) released to Release Preview
by
joep517
1 hour, 24 minutes ago -
Microsoft is now putting quantum encryption in Windows builds
by
Alex5723
2 hours, 19 minutes ago -
Auto Time Zone Adjustment
by
wadeer
5 hours, 53 minutes ago -
To download Win 11 Pro 23H2 ISO.
by
Eddieloh
3 hours, 33 minutes ago -
Manage your browsing experience with Edge
by
Mary Branscombe
2 hours, 46 minutes ago -
Fewer vulnerabilities, larger updates
by
Susan Bradley
25 minutes ago -
Hobbies — There’s free software for that!
by
Deanna McElveen
2 hours, 43 minutes ago -
Apps included with macOS
by
Will Fastie
3 hours, 34 minutes ago -
Xfinity home internet
by
MrJimPhelps
2 hours, 39 minutes ago -
Convert PowerPoint presentation to Impress
by
RetiredGeek
1 hour, 4 minutes ago -
Debian 12.11 released
by
Alex5723
1 day, 3 hours ago -
Microsoft: Troubleshoot problems updating Windows
by
Alex5723
1 day, 6 hours ago -
Woman Files for Divorce After ChatGPT “Reads” Husband’s Coffee Cup
by
Alex5723
10 hours, 9 minutes ago -
Moving fwd, Win 11 Pro,, which is best? Lenovo refurb
by
Deo
2 hours, 33 minutes ago -
DBOS Advanced Network Analysis
by
Kathy Stevens
1 day, 23 hours ago -
Microsoft Edge Launching Automatically?
by
healeyinpa
1 day, 14 hours ago -
Google Chrome to block admin-level browser launches for better security
by
Alex5723
2 days, 2 hours ago -
iPhone SE2 Stolen Device Protection
by
Rick Corbett
1 day, 18 hours ago -
Some advice for managing my wireless internet gateway
by
LHiggins
1 day, 2 hours ago -
NO POWER IN KEYBOARD OR MOUSE
by
HE48AEEXX77WEN4Edbtm
4 hours, 4 minutes ago -
A CVE-MITRE-CISA-CNA Extravaganza
by
Nibbled To Death By Ducks
2 days, 11 hours ago -
Sometimes I wonder about these bots
by
Susan Bradley
2 days, 8 hours ago -
Does windows update component store “self heal”?
by
Mike Cross
1 day, 22 hours ago -
Windows 11 Insider Preview build 27858 released to Canary
by
joep517
3 days, 1 hour ago -
Pwn2Own Berlin 2025: Day One Results
by
Alex5723
1 day, 9 hours ago -
Windows 10 might repeatedly display the BitLocker recovery screen at startup
by
Susan Bradley
22 hours, 20 minutes ago -
Windows 11 Insider Preview Build 22631.5409 (23H2) released to Release Preview
by
joep517
3 days, 4 hours ago -
Windows 10 Build 19045.5912 (22H2) to Release Preview Channel
by
joep517
3 days, 4 hours ago -
Kevin Beaumont on Microsoft Recall
by
Susan Bradley
2 days, 17 hours ago -
The Surface Laptop Studio 2 is no longer being manufactured
by
Alex5723
3 days, 12 hours 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.