Option Explicit
'---------------------------------------------------------------------------------------
' Procedure : TestFiltered
' DateTime : 10/10/2005 18:50
' Author : royUK
' website : www.excel-it.com
' Purpose : Check if data is Filtered
'---------------------------------------------------------------------------------------
'
Sub TestFiltered()
Dim rngFilter As Range
Dim r As Long, f As Long
Set rngFilter = ActiveSheet.AutoFilter.Range
r = rngFilter.Rows.Count
f = rngFilter.SpecialCells(xlCellTypeVisible).Count
If r > f Then MsgBox "Data is Filtered"
End Sub |