Changing cell background color in LibreOffice
问题 I am using LibreOffice 3.5.4.2. I would like to change the background color of cells based on various conditions. As a minimal example, I have the following macro/function defined: function bgcolor() Dim Doc As Object Dim Sheet As Object Dim Cell As Object Doc = ThisComponent Sheet = Doc.Sheets(1) Cell = Sheet.getCellByPosition(0, 0) REM Cell.CellBackColor = RGB(50,60,70) bgcolor=Cell.CellBackColor end function I execute the function by entering =BGCOLOR() into a cell. The cell in which that