OK I’m getting somewhere on this…
I now have this code:
’ ----------------------------------------------------------------------
’ get access to the document
'-----------------------------------------------------------------------
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService(“com.sun.star.frame.DispatchHelper”)
rem ----------------------------------------------------------------------
dim args1(0) as new com.sun.star.beans.PropertyValue
args1(0).Name = “Nr”
args1(0).Value = 4
dispatcher.executeDispatch(document, “.uno:JumpToTable”, “”, 0, args1())
dim args3(0) as new com.sun.star.beans.PropertyValue
args3(0).Name = “ToPoint”
args3(0).Value = “LASTFUTURESTRADE”
dispatcher.executeDispatch(document, “.uno:GoToCell”, “”, 0, args3())
CellRange = Sheet.getCellRangeByName(“LASTFUTURESTRADE”)
…
Now I need to copy the value in the cell named ‘LASTFUTURESTRADE’ into variable i…?