Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8499133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T00:35:12+00:00 2026-06-11T00:35:12+00:00

I am attempting to copy the contents of an array from one sheet (where

  • 0

I am attempting to copy the contents of an array from one sheet (where the array is created by iterating through and pushing select items for the column of the user’s choosing) to a different sheet in a different spreadsheet.

I have come across a number of questions and answers on how to import a range from one spreadsheet to another, but none of them has worked for me (all returning the error “We’re sorry, a server error occurred. Please wait a bit and try again.”) I’ve tried ‘copyTo’ as well, with no success.

Here is the code I’m using currently. Where have I gone wrong??

function copyToTrix(featureList) {

  featureList = featureList.getValues();

  var tss = SpreadsheetApp.openById("0AtX9IYFZ..."); //define active trix as target 

var ts = tss.getSheetByName("US");          //define sheet in target trix

var newRange = ts.getRange("DA12:DA25");    //define target range

 newRange.setValues(featureList);  //set values in target range to items in featureList

Browser.msgBox('copied');
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T00:35:14+00:00Added an answer on June 11, 2026 at 12:35 am

    It turns out the GAS is having trouble with the setValues() function. It wasn’t working to take a full range, so I ended up having to use setValue() instead. (Set value only allows you to operate in one cell at a time):

    var tss = SpreadsheetApp.openById("0AtX9IYFZ9KkbdHg4TUdqYVppTTU5OENpb04tWTdNbHc");
    var ts = tss.getSheetByName("US");
    for (var i = 0; i < featureList.length; i++) {
    var position = i + 12;
    ts.setActiveCell("B" + position).setValue(featureList[i]);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm attempting to copy cells, one at a time, from an Excel 2003 (or
I am attempting to copy data from specific columns in one row, and have
I'm attempting to use the getc() function to copy the contents of one file
I'm attempting to copy data from three workbooks (one at a time) from the
I am attempting to Copy a specific sheet from a closed workbook to a
I am attempting to insert a copy of a row from one table into
I am attempting to use COPY FROM STDIN to import data into my table.
I am attempting to copy a number of arrays in c# using the Array.Copy()
I'm attempting to copy an NSString to the pasteboard from within an NSBundle that
I am attempting to copy a local file 'magento.tar.gz' from my local machine to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.