Hi, I’m not sure if this is a bug so I’ll ask here first. Sample code:
Sub PrintCursorLocation (cursor As Object) print cursor.getRangeAddress.StartColumn & ", " & cursor.getRangeAddress.StartRow End Sub Sub CursorTest Dim cursor As Object cursor = ThisComponent.CurrentController.ActiveSheet.createCursor() PrintCursorLocation(cursor) cursor.gotoOffset(2, 2) PrintCursorLocation(cursor) cursor.gotoNext() PrintCursorLocation(cursor) End Sub
GotoOffset doesn’t seem to be doing anything. There is no error message either. According to the Open Office developer manual, it should move the cursor to the expected cell (C3 in this case) relative to it’s current location. GotoNext and others do move it. Am I doing something wrong?
I’m using LibreOffice 220.127.116.11 release version on Windows Vista.