Does anyone know how to select all the used cells in an OpenOffice Basic Macro? I found this other question telling how to do it with pyUno:
I tried just writing the same code in Basic, but I get an error on the last line:
sheet = ThisComponent.getSheets().getByName(sheetName)
range = sheet.getCellRangeByPosition(0, 0, 0, 0)
range.gotoEndOfUsedArea(True)
The error is Property or method not found
, so I guess that means the python method gotoEndOfUsedArea
doesn't exist for Basic. Perhaps it is wrapping some other call I can make?
I'm on OpenOffice 3.1.1.