RectUnion Method
This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.
Returns a Range object that represents the smallest range of cells that includes the union of the specified ranges.
expression.RectUnion(Range1, Range2)
expression Required. An expression that returns a Spreadsheet object.
Range1* Required **Range.*
Range2* Required **Range.*
Remarks
This method always returns a rectangular range. For example, if you specify A1:A5 and F1:F10, the return value is the rectangular range A1:F10. Also, you cannot use this method to create a range containing noncontiguous areas.