row count function

D

Daniel

How can count all rows in a worksheet or in a column which has data in it
using macro?

In other word, I need to know how many data sets in a worksheet?
Thanks
Daniel
 
M

MartinW

Hi Daniel,

No need for a macro.
=COUNTA(B:B) entered in any cell will count any used
cell in column B.

HTH
Martin
 
Top