Finding row count and filtered rows returned by Autofilter

J

Joseph Uher

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top