Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default How to change the color of the filter check box

I often use filtering functionality in Excel 2003. When I apply filtering by
one column to a data table, it is hard to find later, which column was used
for filtering since the filtering box of the selected column looks hardly
different from others (at least on my display).

I'd like to be able to use a bright fill color for the filtering check box.

Thanks!

Elena
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 95
Default How to change the color of the filter check box

I don't know of a built-in way in Excel, but you can use VBA for simulating
it. For example, add this code to the worksheet selection_change event:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Set w = ActiveSheet
With w.AutoFilter.Filters
For i = 1 To .Count
If .Item(i).On Then
w.Cells(1, i).Interior.ColorIndex = 6
Else
w.Cells(1, i).Interior.ColorIndex = xlNone
End If
Next
End With
End Sub

To add it, right click on the worksheet tab, select View code on the
emergent menu, and paste the code above.
This may slow your worksheet, as it will make the comprobations each time
you move around in the worksheet, you can copy the contents (everthing
between sub and end sub) to a macro and run it on demand.

Hope this helps,
Miguel.

"Elena" wrote:

I often use filtering functionality in Excel 2003. When I apply filtering by
one column to a data table, it is hard to find later, which column was used
for filtering since the filtering box of the selected column looks hardly
different from others (at least on my display).

I'd like to be able to use a bright fill color for the filtering check box.

Thanks!

Elena

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 43
Default How to change the color of the filter check box

Thank you very much! This should do the trick.

I still would like to find out if/how to do this with Excel's own resources
in order to have it set up once and for all.

Thanks anyway, it was very kind of you to respond and maye I will use this
approach on some occassions.

Elena

"Miguel Zapico" wrote:

I don't know of a built-in way in Excel, but you can use VBA for simulating
it. For example, add this code to the worksheet selection_change event:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Set w = ActiveSheet
With w.AutoFilter.Filters
For i = 1 To .Count
If .Item(i).On Then
w.Cells(1, i).Interior.ColorIndex = 6
Else
w.Cells(1, i).Interior.ColorIndex = xlNone
End If
Next
End With
End Sub

To add it, right click on the worksheet tab, select View code on the
emergent menu, and paste the code above.
This may slow your worksheet, as it will make the comprobations each time
you move around in the worksheet, you can copy the contents (everthing
between sub and end sub) to a macro and run it on demand.

Hope this helps,
Miguel.

"Elena" wrote:

I often use filtering functionality in Excel 2003. When I apply filtering by
one column to a data table, it is hard to find later, which column was used
for filtering since the filtering box of the selected column looks hardly
different from others (at least on my display).

I'd like to be able to use a bright fill color for the filtering check box.

Thanks!

Elena

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
Change the color of Filter Arrows in Excel to BRIGHT RED AlwaysThinking Excel Discussion (Misc queries) 6 April 21st 08 10:22 PM
HOW DO i CHANGE THE FONT IN A CHECK BOX? lemleycc Excel Worksheet Functions 1 December 12th 05 05:27 PM
Can you sort with check boxes? Q Excel Discussion (Misc queries) 3 November 10th 05 08:11 PM
I Need a formula to evaluate a cell with + or - values Bob in Oklahoma Excel Worksheet Functions 6 October 31st 05 02:41 PM
Color Code Filter indicators - Change from Blue to Red Martinson44 Excel Worksheet Functions 0 November 10th 04 04:25 AM


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