How to determine which row has changed/updated on Google Sheets Script Editor

半腔热情 提交于 2019-12-02 00:43:43

You should use the onEdit spreadsheet event. (https://developers.google.com/apps-script/guides/triggers/events)

You can call it this way :

function onEdit(e){
    //Access the range with your parameter e.
    var range = e.range;
    var row = range.getRow();
    var column = range.getColumn();
    //do whatever you need with that range
}

It will automatically run when there is an edit on a cell of the spreadsheet.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!