Complete the code to set the background color of cell A1 to yellow using Apps Script.
SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getRange('A1').setBackground([1]);
The setBackground method sets the background color of the cell. Using "yellow" changes the background to yellow.
Complete the code to add a solid border around the range B2:D4.
SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getRange('B2:D4').setBorder(true, true, true, true, false, false, [1], null);
The setBorder method's seventh argument sets the border style. "solid" creates a solid border.
Fix the error in the code to set the background color of range C3:C5 to light gray.
SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getRange('C3:C5').setBackground([1]);
The color must be a string. Using the hex code "#D3D3D3" as a string sets a light gray background correctly.
Fill both blanks to add a solid blue top and bottom border to range E1:E3.
SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getRange('E1:E3').setBorder(true, false, true, false, false, false, [1], [2]);
The seventh argument sets the border style ("solid"), and the eighth argument sets the border color ("blue").
Fill both blanks to set a green left and right border with a dotted border style on range F4:F6.
SpreadsheetApp.getActiveSpreadsheet().getActiveSheet().getRange('F4:F6').setBorder(false, true, false, true, false, false, [1], [2]);
The border style is set to "dotted". The border color is "green" for left and right borders.