I'm trying to get the Rows.Count of a range which consists of two combined ranges:
Set rng = Union(Range1,Range2)
Unfortunately the rng.Rows.Count returns the Rows.Count of Range1, and I would expect it to return Rows.Count of Range1+Range2.
The actual range I tested it with is this: $A$27:$G$41,$A$43:$G$43
Its Rows.Count property returns 15 but in this range there are 16 rows.
Any ideas how to get the correct Rows.Count without much juggling?
Rows.Count
of each area and returning the highest value might suffice. ;) – NullDevRange("A1:C8")
andRange("A2:B9")
– sam092