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

150
Views
quiero copiar datos de una hoja a otra hoja solo seleccionar filas con casilla de verificación en Google App Script

Quiero copiar datos de srange en drange en la validación de la casilla de verificación. a continuación solo imprime datos en logger.log pero no en drange.

 function insertrow(){ var spreadsheet = SpreadsheetApp.getActive(); var full = spreadsheet.getSheetByName("Source"); var shed = spreadsheet.getSheetByName("Destination"); var lr = full.getLastRow(); var srange = full.getRange(2,2,lr,2).getValues(); var dlr = shed.getLastRow(); var drange = shed.getRange(dlr+1,1); srange.forEach (function(row){ if(row[0]){ Logger.log((JSON.stringify(row))); } }) }
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Probar

 function insertrow() { var spreadsheet = SpreadsheetApp.getActive(); var full = spreadsheet.getSheetByName("Source"); var shed = spreadsheet.getSheetByName("Destination"); var lr = full.getLastRow(); var srange = full.getRange(2, 1, lr, 3).getValues().filter(r => r[0]==true); var dlr = shed.getLastRow(); shed.getRange(dlr + 1, 1,srange.length,3).setValues(srange); }
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!