email notification if cell is changed

后端 未结 2 1027
广开言路
广开言路 2020-11-30 05:20

need help with google script. I have multiple row spreadsheet.

Need a script that does the following:

If any cell in col

2条回答
  •  时光取名叫无心
    2020-11-30 05:40

    You should search this forum before posting questions; I did search on email+cell and got a few results :

    For example, this post answer does almost exactly what you want to do.

    EDIT following your edit :

    use an IF condition.

    Something like this :

        var cellG = ''
        if(cell.indexOf('D')!=-1){ // = if you edit data in col D
    cellG = sheet.getRange('G'+ sheet.getActiveCell().getRowIndex()).getValue()
    // add more condition if necessary and/or send your mail (cellG contains the value in column G of the active row
    }
        Logger.log(cellG)
    

提交回复
热议问题