Can I create a Google apps script that gets information from a whole Colomn in a apps spreadsheet and do upon it an action?
I've searched the Class spreadsheet link https://developers.google.com/apps-script/class_spreadsheet but i don't know which method I am going to use actually, anyone can help giving me a push? I am new to the Google apps scripts
Always use the
.getRange()
method to select what cells you want. Then to get all the values, you call.getValues()
. Example:Now
vals
is a 2 dimensional array that is accessible byvals[rowNum][colNum]
. If you're grabbing only one column, thecolNum
will always be0
.