Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Why is it that I'm having to use the separate Else statement "Count -2" when
my I'm back to selecting "All" from my Auto-Filter range? Private Sub CommandButton1_Click() If FilterMode = True Then MsgBox ActiveSheet.AutoFilter.Range.Columns(1) _ .Cells.SpecialCells(xlCellTypeVisible).Count - 1 Else: MsgBox ActiveSheet.AutoFilter.Range.Columns(1) _ .Cells.SpecialCells(xlCellTypeVisible).Count - 2 End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I count the number of records autofilter is showing in Exce | Excel Worksheet Functions | |||
Unique Records Count with AutoFilter | Excel Worksheet Functions | |||
How to obtain the number of filtered records in Autofilter | Excel Worksheet Functions | |||
Autofilter number of records | Excel Worksheet Functions | |||
Selecting Filtered records only when AutoFilter is on | Excel Programming |