https://bugs.documentfoundation.org/show_bug.cgi?id=162897

--- Comment #12 from Rafael Lima <[email protected]> ---
(In reply to Michael from comment #11)
> I tried to record a macro to change the Background Macro, but the recording
> gave me nothing other than this:

A macro to change the background color of the active sheet would be:

Sub ChangeBgColor
    Dim oSheet As Object
    oSheet = ThisComponent.CurrentController.ActiveSheet
    ' Put whatever color you want here
    oSheet.CellBackColor = RGB(50, 50, 50)
End Sub

One can create this macro and associate it with a button in the toolbar.

> and it wouldn't necessitate adding another variable to the
> Application Colors.

I am hesitant to add new color option to the App Colors dialog as well.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to