![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Posts: 2
|
Is there a way to display the filter to another cell when using autofilter ?
|
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Denver, Colorado USA
Posts: 4,014
|
Hi grienerth,
I'm not sure if this is what you want, but here is a user-defined function that returns the value (criteria1) of the n-th filter on a worksheet. So, for example, if you want the filter value of the first filter: =FilterValue(1) will display the value of the filter. Function FilterVal(FilterNo As Integer) As String Application.Volatile If ActiveSheet.AutoFilter.Filters(FilterNo).On Then FilterVal = ActiveSheet.AutoFilter.Filters(FilterNo).Criteria1 Else FilterVal = "filter is off" End If End Function
__________________
Keep Excelling. Damon VBAexpert Excel Consulting (My other life: http://damonostrander.com ) |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|