I'm newbie to spreadsheet and appscript
I'm trying to change value of Column 2 when selecting the value of Column 1 by Appscript in Spreadsheet.
- the value of Column 1 corresponds to Column A
- the value of Column 2 corresponds to Column B
For example
if In "Column 1" I choose value "1", in "Column 2" will show only values "11,12,13" .
if In "Column 1" I choose value "2", in "Column 2" will show only values "21,22,23" .
if In "Column 1" I choose value "3", in "Column 2" will show only values "31,32,33" .
I'm trying it with function onEdit() of Appscript
function onEdit(e) {
var cell = SpreadsheetApp.getActive().getRange('E5');
var rule = cell.getDataValidation();
var SelectRow = cell.getRow();
}
But I still don't know how to change the value of 1 column when selecting the value in another column.
