Link to home
Start Free TrialLog in
Avatar of Svgmassive
Svgmassive

asked on

Count the number of used row in a closed workbook

I would like to count the number of used rows in an named range in a closed workbook.
thanks
SOLUTION
Avatar of Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Ingeborg Hawighorst (Microsoft MVP / EE MVE)
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Svgmassive
Svgmassive

ASKER

can this be done using ADO?
Maybe it would be a good idea to tell us exactly what you want instead of drip-feeding us information. It would take a lot of guesswork out of the answers and save valuable time.
I agree with teylyn.  Frankly, I don't understand your follow-up question at all; I see no correlation between ADO and this requirement.  Are you trying to estimate the number of records to import from an external spreadsheet?

-Glenn
yes glen ray..correct
Well, you don't need ADO to do it; just create the ROWS formula above and reference the data range in the workbook.  It should work and run faster than opening an ADODB connection, executing a query, doing a MoveLast command and trying to estimate the record count from that.