If I write
I get the number of rows in the range.Msgbox Range("A1:A10").count
How do I write a statement using .Count to get a count of the number of used cells in the range?
If I write
I get the number of rows in the range.Msgbox Range("A1:A10").count
How do I write a statement using .Count to get a count of the number of used cells in the range?
You need to specify what you want to count, in this case Cells.
Now what do you mean by used cells? Only cells with values or all cells in the range. If you only want cells with certain values you can use SpecialCells to narrow the range.Msgbox Range("A1:A10").Cells.Count
You pretty much told me what I was missing. I just want to know how many of the cells in a column have values.
I'll investigate the SpecialCells to see what possibilities it offers. Thanx drj!
You're Welcome
Take Care