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

110
Vistas
How to copy a column from one worksheet to another using the excel javascript api for an excel addin

Is there a way to copy a column or a range of cells from one worksheet to another? There are ways to copy ranges of cells within the worksheet, but I am looking to copy cells from one worksheet to another.

I am working with the excel javascript api to create an excel addin.

The excel javascript api I am using

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

0

I found a solution. This works by passing a range to the copyFrom method.

async function run() {
  await Excel.run(function (context) {
    var currentWorksheet = context.workbook.worksheets.getActiveWorksheet();
    currentWorksheet.load("name");

    var otherSheet = context.workbook.worksheets.add("other-sheet");
    otherSheet.load("name, position");
    var tbACol = currentWorksheet.getRange("A1:A200");
    otherSheet.getRange("A1:A3").copyFrom(tbACol);


    return context.sync().then(function () {
      console.log(`Added worksheet named "${otherSheet.name}" in position ${otherSheet.position}`);
    });
  });
}
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