Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default spreadsheet filter alerts

i am using MS Excel 2002 Ver. I have numerous filters set up in a spreadsheet
but wish to be alerted when any one is applied. Is it possible to change the
colour of cells when any one of a number of filters is applied, this would be
in the form of a banner across the top of the spreadsheet to alert me that a
filter has been applied henceinforming me that not all spreadsheet will be
searched for information when requested. Any help appreciated
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,480
Default spreadsheet filter alerts

Hi

The following code from Debra Dalgleish will do what you want.

Copy the code below, right click on the sheet tab with your autofilter
dataViewCodePaste.
Click back onto youe worksheet
Save the file

Now, when a filter is active, the whole cell containing the autofilter
dropdown will be coloured.

Private Sub Worksheet_Calculate()
'rem Code created by Debra Dalgleish
Dim af As AutoFilter
Dim fFilter As Filter
Dim iFilterCount As Integer

If ActiveSheet.AutoFilterMode Then

Set af = ActiveSheet.AutoFilter
iFilterCount = 1
For Each fFilter In af.Filters
If fFilter.On Then
af.Range.Cells(1, iFilterCount) _
.Interior.ColorIndex = 6
Else
af.Range.Cells(1, iFilterCount) _
.Interior.ColorIndex = xlNone
End If
iFilterCount = iFilterCount + 1
Next fFilter
Else
Rows(1).EntireRow.Interior.ColorIndex = xlNone
End If
End Sub

--
Regards
Roger Govier



"swainstong" wrote in message
...
i am using MS Excel 2002 Ver. I have numerous filters set up in a
spreadsheet
but wish to be alerted when any one is applied. Is it possible to change
the
colour of cells when any one of a number of filters is applied, this would
be
in the form of a banner across the top of the spreadsheet to alert me that
a
filter has been applied henceinforming me that not all spreadsheet will be
searched for information when requested. Any help appreciated



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
alerts gambit Excel Worksheet Functions 3 August 22nd 06 04:02 PM
Creating a spreadsheet that will filter Liju George New Users to Excel 2 July 10th 06 09:26 PM
Alerts? audiophile New Users to Excel 4 December 29th 05 02:16 PM
How to filter 7 columns in a 20 column spreadsheet? Yvette Excel Worksheet Functions 1 July 14th 05 02:03 AM
How do I stop macro alerts for a spreadsheet with no macros in it DKS044 Excel Discussion (Misc queries) 1 June 23rd 05 03:53 PM


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