In calc basic,
thisSheet = ThisComponent.CurrentController.ActiveSheet
cellRange1 = thisSheet.getCellRangeByPosition( c1, r1, c1, r2 )
cellRange2 = thisSheet.getCellRangeByPosition( c2, r3, c2, r4 )
such that cellRange1 and cellRange2 do not intersect.
' cellRanges = cellRange1 + cellRange2 Err 380 Incorrect Property Value
' cellRanges = cellRange1 & cellRange2 Err 380 Incorrect Property Value
cellRanges = cellRange1 ~ cellRange2 'Err Unexpected Symbol: Attribute
So what’s the LO basic way of creating a union of Cell Ranges?
Thanks,
Mike
[Edit Opaque] Removed the <pre>
tag for better readability.