Count from A5 down to last used row - Not up

  • Thread starter Thread starter Les
  • Start date Start date
L

Les

Hi all,

Is it possible to count the used rows from A5 down to the last used row ?

As i have data further down in column A, so cannot count up.
 
Use xlDown instead of xlUp...

dim rng as range

set rng = range(range("a5"), range("A5").end(xlDown))
msgbox rng.count
 
Thanks Jim, much appreciated

--
Les


Jim Thomlinson said:
Use xlDown instead of xlUp...

dim rng as range

set rng = range(range("a5"), range("A5").end(xlDown))
msgbox rng.count
 

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

Back
Top