Skip to content

Instantly share code, notes, and snippets.

@franklinokech
Created April 25, 2019 12:21
Show Gist options
  • Save franklinokech/02806bcb7e4a2d101f540883ad96bd8f to your computer and use it in GitHub Desktop.
Save franklinokech/02806bcb7e4a2d101f540883ad96bd8f to your computer and use it in GitHub Desktop.
import Range using google app script
function importFarmList() {
//geth values to be imported from the source sheet
var values = SpreadsheetApp.openById('19VSMmYDmLI4z4cIXjPmufn9d7Q-sL-xqzCCUVV4y7VU').
getSheetByName('Farm List').getRange('A:Q').getValues();
//set values imported
SpreadsheetApp.getActive().getSheetByName('farm_list').
getRange(1,1,values.length,values[0].length).setValues(values);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment