Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

555
Visualizações
Copy and Paste Google Sheet script not copying full range

I'm using the following script in order to copy data from one sheet to another in the same spreadsheet with values only and in a specific cell.

My problem is that the range to copy had to be updated by 2 more columns but now the script is not correctly working. When I check the sheet where the values are copied, I'm missing the 2 new columns somehow. I already make sure that the range specified in the code is the one I want.

I would really appreaciate your help. Thank you!!

function copyANDpaste() {
   var spreadsheet = SpreadsheetApp.getActive();
   var originSheet = spreadsheet.getSheetByName('Sheet1');
   var listToCopy = originSheet.getRange('B9:AN26');
   var destinationSheet = spreadsheet.getSheetByName('1st Week');
   var destinationColum = destinationSheet.getLastColumn();
   listToCopy.copyTo(destinationSheet.getRange('B2'),{contentsOnly:true});
};
about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda