• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

189
Views
google script copia datos de la hoja 1 a la primera hoja de fila vacía 2

Quiero hacer un script para mi hoja de cálculo de Google que copie un rango de datos de la hoja 1 a la última fila vacía en la Hoja 2 (columna a). No sé qué está mal, me sale este error: error Soy un novato en programación.

almost 3 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Copie el rango activo al final de la hoja 2

 function copy() { const ss = SpreadsheetApp.getActive(); const sh = ss.getSheetByName('Sheet1') const rg = sh.getActiveRange();//you select the range before running the script const vs = rg.getValues(); const tsh = ss.getSheetByName('Sheet2'); tsh.getRange(tsh.getLastRow() + 1, 1,vs.length,vs[0].length).setValues(vs); }
almost 3 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 Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error