ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Finding row count and filtered rows returned by Autofilter (https://www.excelbanter.com/excel-programming/277618-finding-row-count-filtered-rows-returned-autofilter.html)

Joseph Uher

Finding row count and filtered rows returned by Autofilter
 
I need to be able to find and use:

1. the row (record) count returned by Autofilter;
2. the row (record) numbers returned by Autofilter.

These are displayed in the Excel StatusBar as (eg):

3 records of 8 found

I need the count, and I need to be able to "loop" through
all rows returned -- ie, the filtered rows with data
matching Criteria1.

Range("A1").SpecialCells(xlVisible).Count does NOT do it.
Range("A1").SpecialCells(xlCellTypeLastCell).Row does NOT
do it.

Note: I access a spreadsheet created as Private by an
application developed in VisualBasic 6.0.

Barring direct access to this information, can I get the
*TEXT* itself of the Excel StatusBar?

Application.DisplayStatusBar always returns Boolean.
Application.StatusBar always returns Boolean.

Doesn't help.




All times are GMT +1. The time now is 03:19 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com