How can I run a piece of code on a cell selection? And how can I run it again, when I start editing the value in the cell?
I been going through the documentation, and in no way I can find anything (a specific binding???) to achieve the desired result.
You can use workbook.getActiveCell()
to run a piece of code on a cell selection, but the second part to your question is not possible as Office Scripts does not support events that trigger scripts to run.