有谁知道如何选择 OpenOffice Basic 宏中所有使用的单元格?我发现this other question告诉如何用pyUno做到这一点:
我尝试在 Basic 中编写相同的代码,但在最后一行出现错误:
sheet = ThisComponent.getSheets().getByName(sheetName)
range = sheet.getCellRangeByPosition(0, 0, 0, 0)
range.gotoEndOfUsedArea(True)
错误是Property or method not found
,所以我猜这意味着gotoEndOfUsedArea
Basic 不存在 python 方法。也许它正在包装我可以拨打的其他电话?
我在 OpenOffice 3.1.1 上。