D
Dave Unger
Hello,
I’ve thought about this one for a while, but haven’t been able to
reason out why. Haven’t found anything in the groups that quite
addresses this. Hopefully someone can straighten me out.
Set r = Range("A1:C3")
r.Count returns number of cells (9)
Set r2 = Intersect(r, Rows(1))
r2.Count returns number of cells (3)
but
Set r2 = r.Rows(1)
Now, r2.Count returns number of rows (1)
I now have to specify cells to get the cell count
r2.Cells.Count returns number of cells (3)
Thanks for your help,
regards,
Dave
I’ve thought about this one for a while, but haven’t been able to
reason out why. Haven’t found anything in the groups that quite
addresses this. Hopefully someone can straighten me out.
Set r = Range("A1:C3")
r.Count returns number of cells (9)
Set r2 = Intersect(r, Rows(1))
r2.Count returns number of cells (3)
but
Set r2 = r.Rows(1)
Now, r2.Count returns number of rows (1)
I now have to specify cells to get the cell count
r2.Cells.Count returns number of cells (3)
Thanks for your help,
regards,
Dave