Skip to content

Instantly share code, notes, and snippets.

@tomrandle
Created October 17, 2016 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomrandle/dde20c7c4be33effa8370744baa162c8 to your computer and use it in GitHub Desktop.
Save tomrandle/dde20c7c4be33effa8370744baa162c8 to your computer and use it in GitHub Desktop.
updateUnattendingRows
function updateUnattendingRows() {
var attendingValues = sheet.getRange(startRow,4,rowRange,1).getValues();
var color = "lightgrey"
for (var i = 0; i < attendingValues.length; i++) {
var rr = sheet.getRange("A"+(i+startRow)+":I"+(i+startRow))
if(attendingValues[i][0] === false && rr.getBackground() != color) {
rr.setBackground(color);
} else {
rr.setBackground("");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment