In a cell i have a custom function where im trying to pass the row number. =myCustomFunction(row())
function myCustomFunction(row){ var currentRow = Row; Logger.log(currentRow); }
The result from the log is 'Null' where i would expect the number of the row.
However i can return the variable and it will show up in the cell just fine.
function myCustomFunction(row){ var currentRow = Row; return currentRow; }
This will put the number of the row in the cell as expected but i would like to use the row number in the function and do things with it. any insight is much appreciated.
Row !== rowI have since read that the apps script environment does not pick up passed variables from a spreadsheet cell.Not true.