I am searching for a python function, which just returns a simple relative address of a calc table cell.
Lets assume I have a cell object and call the CellAddress-Parameter, then I get a com.sun.star.table.CellAddress Object. But how can I convert this back to a String containing a relative Address?
Currently I am doing this:
row = celladressobject.Row
column = celladressobject.Column
evaluator = servicemanager.createInstanceWithContext("com.sun.star.sheet.FunctionAccess",context)
myExpectedResult = evaluator.callFunction("ADDRESS", (row+1,column+1,4))
This is kinda ugly, especially since the calc function starts with (1,1) indexing. But I couldn’t find a python function yet, which does the same.