Has AutoFiltering Been Applied?
Try,
Function IsFiltered(MyRange As Range) As String
Application.Volatile
With MyRange.Parent.AutoFilter
If Intersect(MyRange, .Range) Is Nothing Then GoTo GetMeOut
With .Filters(MyRange.Column - .Range.Column + 1)
If Not .On Then
IsFiltered = False
Else
IsFiltered = True
End If
End With
End With
GetMeOut:
End Function
Mike
"Gary''s Student" wrote:
I need a simple Boolean function (UDF):
=isfilted(A1)
That will return TRUE if AutoFiltering has been applied to A1, otherwise
FALSE.
Thanks in advance
--
Gary''s Student - gsnu2007xx
|