Created
October 17, 2016 14:00
-
-
Save tomrandle/dde20c7c4be33effa8370744baa162c8 to your computer and use it in GitHub Desktop.
updateUnattendingRows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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