【发布时间】:2015-11-11 15:03:35
【问题描述】:
我必须编写一个突出显示特定数字的宏(将背景颜色设置为黄色)。
我已经编写了一个使用对象光标查找这些数字的宏,但我不知道如何更改背景颜色。
Dim Cursor As Object
Dim Proceed As Boolean
Cursor = ThisComponent.Text.createTextCursor()
Cursor.gotoStart(False)
Do
Cursor.gotoEndOfWord(True)
'some If statements that check if the number is correct
'Cursor.CharEmphasis = com.sun.star.text.FontEmphasis.DOT_BELOW
Proceed = Cursor.gotoNextWord(False)
Loop While Proceed
我发现了一个在文本下方用点强调文本的功能。是否有类似的突出文本?
【问题讨论】:
标签: macros libreoffice