Changing the color of Autofilters

Landcruiser87

New Member
Joined
Feb 7, 2008
Messages
16
Ok, This might be an extreme shot in the dark, but does anyone know of a way to change the color of the auto filters from that extremely dark blue to something that, ohhh i don't know, might actually stand out in a spreadsheet of many filtered items! The problem is when i'm looking for whats been filtered on the sheet and instead of just removing the filter entirely and starting over, i'd like to see what the hell is going on.

I've searched high and low and found no solution as of yet.

So its to the message board with this quandry.

Thanks for your help
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Well, I developed a UDF for that problem:
Excel Workbook
ABC
1TRUEFALSEFALSE
2Data1Data2Data3
3125
4125
5125
6125
7125
8236
9236
Sheet


Code:
Function FilterCrit(rng As Range) As Boolean

Dim Col As Integer

Col = rng.Column

FilterCrit = ActiveSheet.AutoFilter.Filters(Col).On


End Function
as you can see, the UDF returns True / false Statements.

With a little conditional formatting you can easely mark the filtered columns with a color of your choice.
 
Last edited:
Upvote 0
I don't think so, but here is a custom function you could use in Conditional Formatting:

Code:
Function FilterOn(Rng As Range) As Boolean
    Dim x As Integer
    Application.Volatile True
    Set Rng = Rng.Cells(1, 1)
    If Rng.Parent.AutoFilterMode = False Then
        FilterOn = False
        Exit Function
    End If
    With Rng.Parent.AutoFilter
    If Application.Intersect(Rng, .Range) Is Nothing Then
        FilterOn = False
        Exit Function
    End If
    x = Rng.Column - .Range.Cells(1, 1).Column + 1
    FilterOn = .Filters(x).On
    End With
End Function

In CF choose Formula Is and enter a formula like:

=FilterOn(A1)
 
Upvote 0
Well i couldn't get either of them to change the little buggers with VBA. But thanks for the replies! I did find an application for your code Andrew, thanks again!
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top