He estado tratando de resolver esto y estoy un poco perdido...
Esto es lo que tengo hasta ahora:
function deleteCheckedBoxes() { const sheet = SpreadsheetApp.getActiveSheet(); const activeRange = sheet.getActiveRange(); const activeRow = activeRange.getRow(); const activeColumn = activeRange.getColumn(); let rangeUpdatedValue = activeRange.getValue(); if(activeColumn == 5 && rangeUpdatedValue == true){ sheet.deleteRow(activeRow); }; }¿Cómo puedo hacer que borre la fila en lugar de eliminarla?
Probé clearContent y ClearContents, pero parece que no funciona
¡Cualquier ayuda sería muy apreciada!
Cuando se modifica su secuencia de comandos, ¿qué tal la siguiente modificación?
sheet.deleteRow(activeRow); sheet.getRange(activeRow, 1, 1, sheet.getLastColumn()).clearContent();clearContent() , la casilla de verificación está desmarcada.