Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
on which column is the filter active?
How do I identify the column on which a filter is active in an Excel sheet?
Alfonso |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
on which column is the filter active?
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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
on which column is the filter active?
GREAT!!! thanks!
wrote in message ups.com... 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 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
on which column is the filter active?
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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Open excel with a filter active an a certain value | Excel Discussion (Misc queries) | |||
Active Cell in Auto Filter | Excel Discussion (Misc queries) | |||
Active Cell to be used as filter... | Excel Programming | |||
Filter range of only active cells??? | Excel Worksheet Functions | |||
how can I return the active row and active column? | Excel Programming |