There is this question regarding adding checkbox functionality to Google Drive: Checkbox function to automatically add to total. And a great answer is:
In the Google Sheets spreadsheet go to Tools -> Script Editor. Enter the following code:
function onEdit() {
if(SpreadsheetApp.getActiveRange().getValue() == 1) {
SpreadsheetApp.getActiveRange().setValue('=CHAR(10004)');
SpreadsheetApp.getActiveRange().setBackgroundRGB(0,255, 0);
}
if(SpreadsheetApp.getActiveRange().getValue() == 0) {
SpreadsheetApp.getActiveRange().setValue('=CHAR(10060)');
SpreadsheetApp.getActiveRange().setBackgroundRGB(255, 0, 0);
}
}
Enter into any cell a 1 for a tick, and a zero for a cross.
This code is great and it works beautifully, but I would like to know how to ONLY apply that to a range of cells and not to the whole spreadsheet.
By example, cells: G25 x I47