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

546
Views
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
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!