LibreOffice 宏获取当前索引 sheet

LibreOffice macro get index current sheet

有人知道如何在 LibreOffice Macro Basic 中获取当前 sheet 的索引吗?

我取名成功:

cursheet = my_doc.getcurrentcontroller.activesheet.Name

但是如何获取索引呢?

此外,有没有地方可以找到所有这些组件和基本语言的文档?

TY 你的帮助。

看起来像是两个问题合二为一...关于文档,您可以从 OOo Wiki or the LO Wiki on Basic, respectively. For a more complete guide, check Andrew Pitonyak's resources on OpenOffice macros 开始。通常,所有适用于 OpenOffice.org 的解决方案也应该适用于 LO。

关于当前sheet的索引:和往常一样,OpenOffice.org forums know the answer

sSheet.RangeAddress.Sheet