[]
Returns an IRange object that represents the union of two ranges.
If range2 is from a different worksheet, an exception is thrown.
IRange Union(IRange range2)
Function Union(range2 As IRange) As IRange
Type | Name | Description |
---|---|---|
IRange | range2 | The range to union with this range. |
Type | Description |
---|---|
IRange | A new range which consists of the union of this range and range2. |
Returns an IRange object that represents the union of several ranges.
If one or more ranges from a different worksheet are specified, an exception is thrown.
IRange Union(params IRange[] ranges)
Function Union(ParamArray ranges As IRange()) As IRange
Type | Name | Description |
---|---|---|
IRange[] | ranges | Other ranges to union with this range. |
Type | Description |
---|---|
IRange | A new range which consists of the union of this range and other ranges. |