Illustrating the Column Being Sorted via AutoFilter in a Large spreadsheet that

Jungle Fever

New Member
Joined
Mar 30, 2007
Messages
35
I have a very large spreadsheet Is there a Macro that is able to ILLUSTRATE which column is using the Sort feature within AutoFilter e.g. Asceding Descending

Thanks JF
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Hi JF,

I found the following solution HERE

In a standard module put this....

Code:
Function FilterOn(myCell As Range) As Boolean
    On Error Resume Next
    With myCell.Parent.AutoFilter
        With .Filters(myCell.Column - .Range.Column + 1)
            If .On Then FilterOn = True
        End With
    End With
End Function

Highlight your header row, say A1:G1 in 2007 go to Conditional Formatting, select New Rule, Use a formula etc then paste in this....

=filteron(A1)

Select the format of your choice, I use a Red fill because it really standards out, click OK
Apply your filter(s) and hopefully the Header will change colour.

Good luck

Ak
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,459
Members
452,915
Latest member
hannnahheileen

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