LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 47
Default Using filter heading name instead of number

Hi,
I have posted this message last week, but I got no replies.... It was under
other question so more than likely it was not noticed..

Subject: on which column is the filter active? 8/3/2006 9:34 PM PST
Hi,
How could I use the value in the filter heading cell instead of Filtercolumn
number?

BR
Makelei

" wrote:

Hi
Try this:
Sub tester()
Dim myFilter As Filter
Dim Filtercolumn As Integer

Filtercolumn = 0
With Worksheets(1)
If .AutoFilterMode Then
For Each myFilter In .AutoFilter.Filters
Filtercolumn = Filtercolumn + 1
If myFilter.On Then
MsgBox Filtercolumn
End If
Next myFilter
End If
End With
End Sub

regards
Paul
Alfonso wrote:
How do I identify the column on which a filter is active in an Excel sheet?

Alfonso





 
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
The clear filter from a a heading cell is grey out Mark Excel Worksheet Functions 2 September 23rd 09 03:17 AM
how do I link chart title & keep the number format in a heading Raj Charts and Charting in Excel 1 April 22nd 08 07:46 PM
Customize color of down-arrow on filter column heading? Eric Excel Discussion (Misc queries) 2 November 2nd 07 06:34 PM
Adding Column Heading w/o Using a Row Number NBrown Excel Discussion (Misc queries) 3 November 28th 06 01:45 AM
How can you darken the tabs and number rows and top column heading gm709 Excel Discussion (Misc queries) 3 September 14th 06 05:15 PM


All times are GMT +1. The time now is 01:55 AM.

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"