Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

154
Views
Hojas de cálculo de Google: al hacer clic en una casilla de verificación, quiero que se borre la fila (no se elimine) y también que la casilla de verificación se restablezca

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!

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Cuando se modifica su secuencia de comandos, ¿qué tal la siguiente modificación?

De:

 sheet.deleteRow(activeRow);

A:

 sheet.getRange(activeRow, 1, 1, sheet.getLastColumn()).clearContent();
  • Cuando se ejecuta este script modificado, se borra la fila del rango activo.
  • En este caso, por clearContent() , la casilla de verificación está desmarcada.

Referencia:

  • borrarContenido()
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!