- excel vba count visible rows in table
- specialcells xlcelltypevisible rows count
- vba loop through visible rows
- specialcells(xlcelltypevisible).rows.count not working
- countif visible cells vba
- get row number of filtered row vba
Dim i As Long
i = Cells(Rows.Count, "A").End(xlUp).Row
''' VBA To count Total Rows in Excel
Dim j As Long
j = Sheets("Sheet1").AutoFilter.Range.Columns(1).SpecialCells(xlCellTypeVisible).Cells.Count - 1
'''VBA to count number of visible rows after autofilter row
Note:
- Take column A or first column to count as first column is normally clean. It does not contain any blank rows
- For Autofilter, we need to minus 1 as header is also counted in the formula. Minus 1 will remove header. If you need to count the header then no need to Minus 1
No comments:
Post a Comment