Google App Script execute function when a user selects a cell in a range

后端 未结 2 499
情书的邮戳
情书的邮戳 2020-12-07 00:01

I\'d like to run a function that requires authorization when a user clicks/selects a cell in a given range. A simple onSelectionChange(e) trigger doesn\'t work because of th

2条回答
  •  粉色の甜心
    2020-12-07 00:42

    So I ended up adding a column with the value "Clear to run function" on each row, with a simple onEdit(e) that triggers my function if one value in this column in different from "Clear to run function".

    From a UX perspective, it means clearing a cell to run the function - not ideal, but it works.

提交回复
热议问题