So, today I was playing around with the macro recorder in LibreOffice Calc. I was recording and editing macros and noticed that if change the name’s value from cell(0).Name = "ToPoint"
for example to cell(0).Name = "ToShPoint"
the macro below stops working:
Sub Main
rem ----------------------------------------------------------------------
rem define variables
dim document as object
dim dispatcher as object
rem ----------------------------------------------------------------------
rem get access to the document
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
rem ----------------------------------------------------------------------
dim cell(0) as new com.sun.star.beans.PropertyValue
cell(0).Name = "ToPoint"
cell(0).Value = "$B$1"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, cell)
dispatcher.executeDispatch(document, ".uno:Cut", "", 0, Array())
dim args2(0) as new com.sun.star.beans.PropertyValue
args2(0).Name = "ToPoint"
args2(0).Value = "$C$1"
dispatcher.executeDispatch(document, ".uno:GoToCell", "", 0, args2())
dispatcher.executeDispatch(document, ".uno:Paste", "", 0, Array())
End Sub
Is the ToPoint
some kind of special keyword? I was trying to find any reference to the ToPoint
keyword in documentation, (specifically I checked here and here) but didn’t find anything.