I want to change the 1st cell backgroundcolor and 2nd cell font style but cannot seems to get it.
function insertHeading1(){
var heading1Style = {};
heading1Style[DocumentApp.Attribute.FONT_FAMILY] = 'Calibri';
heading1Style[DocumentApp.Attribute.FONT_SIZE] = 18;
heading1Style[DocumentApp.Attribute.HORIZONTAL_ALIGNMENT] = DocumentApp.HorizontalAlignment.LEFT;
heading1Style[DocumentApp.Attribute.LINE_SPACING] = 1;
var cells = [
['#1c3a69', 'HEADING 1, CALIBRI, 18PT, BOLD, LEFT ALIGNED, ALL CAPS, SINGLE SPACING, NO SPACE BEFORE AND AFTER PARAGRAPH'],
];
var tableRow1 = body.appendTable(cells);
tableRow1.getCell(0,0).editAsText()
.setBackgroundColor(0,1,'#1c3a69');
tableRow1.getCell(0,1).editAsText
.apply(heading1Style);
}
No errors, not sure what went wrong.
