Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,510
Default Arrow color with Autofilter (with Excel)

Hello Patrice,

I don't believe you can change the color of the dropdowns.

You could use the following Worksheet Calculate event to change the
background color of the column headers on the AutoFilter Range. However,
somewhere out to the right of your AutoFiltered data insert the following
formula in row 1. This is to force a worksheet calculate event to run each
time the Autofilter is changed. If you already have subtotals or other
calculations on the worksheet that will be calculated when the AutoFilter is
changed that this is not required.

=SUBTOTAL(3,A:A)

The A:A in the formula can be any column within the AutoFiltered range.

The following code goes in the worksheet module. Not sure if you know how to
do this but just in case here are instructions to insert the code.

Right click the worksheet tab.
Select View Code.
The VBA Editor will open in the worksheet module.
Copy the below code and paste it into the VBA editor. (Do not change Sub
name.)
Click the X with the red background top right of editor window to close the
VBA editor.
You will need macros enabled to run with notification. (See Help for how to
do this.)
If xl2007 then Save as Macro enabled workbook. (Earlier versions save as
normal)


Private Sub Worksheet_Calculate()
Dim rngFilter As Range
Dim i As Long

With Me
If .AutoFilterMode Then
With .AutoFilter.Range
Set rngFilter = _
.Resize(1, .Columns.Count)
End With
With .AutoFilter
For i = 1 To .Filters.Count
With .Filters(i)
If .On Then
rngFilter.Cells(1, i) _
.Interior.ColorIndex = 4 'Green
Else
rngFilter.Cells(1, i) _
.Interior.ColorIndex = xlNone
End If
End With
Next i
End With
End If
End With

End Sub



--
Regards,

OssieMac


"Patrice Boulanger" wrote:

Is it possible to change the arrow color for an active filter under
Autofilter in Excel?

It is almost impossible to distinct the color blue to black on the scroll
down autofilter button on the first row of a spreadsheet.

If this is not possible, I suggest to add a customizing function for this.

I feel like I'm color blind!

Best regards

Patrice Boulanger

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
Can you change the colour of an Excel autofilter arrow?? Paula Setting up and Configuration of Excel 2 July 19th 06 10:05 AM
Arrow color on Autofilter moi Excel Worksheet Functions 1 November 18th 05 08:26 PM
Autofilter selected arrow color Jon Quixley Excel Worksheet Functions 1 August 2nd 05 11:56 AM
Excel to allow color setting for autofilter drop-down arrow patriceadsl Excel Discussion (Misc queries) 1 April 25th 05 01:16 PM
Change rollover color on autofilter arrow from blue to red afineline Excel Worksheet Functions 1 February 12th 05 03:30 AM


All times are GMT +1. The time now is 02:46 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"