Get Started
Plugins
Macros
More information

Change cell background color

Description

Set the background color of the cell B3 to blue.

(function()
{
    Api.GetActiveSheet().GetRange("B3").SetFillColor(Api.CreateColorFromRGB(0, 0, 250));
})();

Methods used: GetActiveSheet, GetRange, SetFillColor, CreateColorFromRGB

Reference Microsoft VBA macro code
Sub example()
    Range("B3").Interior.Color = RGB(0, 0, 250)
End Sub
Result

Background color