Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

210
Vistas
google script copy data from sheet 1 to first empty row sheet 2

I want to make a script for my google spreadsheet that copy a range of data from sheet1 to the last empty row in Sheet2 ( column a). I don't know what is wrong, i get this error: error I'm a novice in programming.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Copy Active Range to bottom of sheet 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);
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda