用宏观造型细胞
我是新的OO CALC宏。使用此代码,我可以在 f13:f16
范围上进行样式单元格,
REM ***** BASIC *****
Option Explicit
Sub Main
oDoc = ThisComponent
osheets = odoc.getSheets()
osheet = osheets.getByIndex(0)
oCells = oSheet.getCellRangeByName("F13:F16")
NewBorder = oCells.BottomBorder
NewBorder.OuterLineWidth = 3
oCells.BottomBorder = NewBorder
End Sub
如何编辑此代码,以便我可以使用鼠标选择当前选择的单元格,而不是在代码中指定它们?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用选定的单元格是有点复杂的,因为可以选择单个单元格,一个单元格范围或多个细胞范围。
在Essential 。
Working with selected cells is a bit complex because either a single cell, a cell range, or multiple cell ranges may be selected.
Code that handles all of these possibilities is explained in the essential Andrew's Macro Document under section 6.5.1. Simple example processing selected cells.