I'm trying to create a custom function in my google spreadsheet with the script editor.
I can't seem to allow the user to give the function an array as the argument.
My script works when I hardcode like this:
var values = SpreadsheetApp.getActiveSheet().getRange("G2:j30").getValues();
What I want to do is pass the array as an argument:
function arrayToList(chosenArray) {
...
var values = SpreadsheetApp.getActiveSheet().getRange(chosenArray).getValues();
...
}