This worked, solidly and in production in LibreOffice Calc 7:
Rem handle the range specification and criteria
Cursor = SheetObject.createCursor()
Cursor.gotoEndOfUsedArea(True)
EndCellRange = Cursor.RangeAddress
With RangeAddress
.StartColumn = StartColumn
.StartRow = StartRow
.EndColumn = EndCellRange.EndColumn
.EndRow = EndCellRange.EndRow
.Sheet = EndCellRange.Sheet
End With
In LO 24 (see below) it makes no assignments. All values remain 0. However,
Rem handle the range specification and criteria
Cursor = SheetObject.createCursor()
Cursor.gotoEndOfUsedArea(True)
EndCellRange = Cursor.RangeAddress
RangeAddress.StartColumn = StartColumn
RangeAddress.StartRow = StartRow
RangeAddress.EndColumn = EndCellRange.EndColumn
RangeAddress.EndRow = EndCellRange.EndRow
RangeAddress.Sheet = EndCellRange.Sheet
appears to work. Other functions are still broken, so at least it works as far as I can tell.
Anyone else seeing similar issues with With?
Version: 24.8.1.2 (X86_64) / LibreOffice Community
Build ID: 87fa9aec1a63e70835390b81c40bb8993f1d4ff6
CPU threads: 20; OS: Windows 11 X86_64 (10.0 build 22631); UI render: Skia/Raster; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: threaded