My script is able to cross out the first column juste after the the check box, while I'm looking to cross out the whole row.
Also, I'd like to apply a different colour when the box is ticked.
function onEdit(e){
var mySheet = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
var myRange = e.range;
var mySheetName = mySheet.getSheetName();
var myStatus = myRange.getValue();
var currRow = myRange.getRow();
var currCol = myRange.getColumn();
var myItem = mySheet.getRange(currRow, currCol + 1);
if (
mySheetName === 'Feuille1'
&& currCol === 1
) {
if (
myStatus
) {
myItem.setFontLine("line-through");
} else {
myItem.setFontLine(null);
};
};
};


