onEdit is not firing when cell containing a formul

2019-07-24 11:16发布

I am using onEdit to trigger on a cell value change. But if the cell value is updated because of the formula then onEdit is not working. Any workaround for this ?

1条回答
贼婆χ
2楼-- · 2019-07-24 11:37

No direct solution. as explained here: GAS-triggers-forumla

the simple triggers only work when a user modifies the sheet. If you want to detect changes in a cell due to a formula, a workaround would be to have a time-based trigger which checks the current value of the cell with the old value, stored as a 'property' of the script/user. In this way it'll know if there'a a change after a fixed amount of time.

查看更多
登录 后发表回答