Pardon me, you say “That was basic” but the first part of it was done with a mouse not in basic.
JohnSUN was the only response I got for how to make a CellRanges from 2 CellRange objects.
The object I get from using your suggestion responds to rgs.getRowDescriptions() properly but falls short on rgs.getColumnDescriptions() for a selection of A1:B2, C3:D4
only reporting Column A. It doesn’t respond to rgs.getColumns() or rgs.Columns giving
‘Property or method not found’ and UBound(rgs) likewise gives an error.
I know how to access each cell in an array created with ThisComponent.CurrentController.ActiveSheet.getCellRangeByPosition( 2, 4, 2, 6 )
as well as that made using JohnSUN’s algorythm but still haven’t found a way to do the same with the object you described.
I’ve no doubt that you know how to do this, would you care to share a couple of lines of code demonstrating how to access the cells in the object you demonstrated above? Likewise how to create such in basic?
Thanks,
Mike