TRY NEW VERSION

Try now New API BETA

Try out the new view and capabilities of the API documentation

START

Change cell background color

Description

Sets 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