Created
April 25, 2019 12:21
-
-
Save franklinokech/02806bcb7e4a2d101f540883ad96bd8f to your computer and use it in GitHub Desktop.
import Range using google app script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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