Merge two onEdit with if functions?

前端 未结 1 378
名媛妹妹
名媛妹妹 2021-01-16 23:06

I have script for Google Sheets that I collected on interwebs and got some help here. No I have 2 onEdit in conflict. I overcome that by creating script Trigger

相关标签:
1条回答
  • 2021-01-17 00:04

    Rename your first the onEdit function to onEdit1 (actually it will be better to assign a descriptive name), then add the following function:

    function onEdit(e){
      onEdit1(e);
      onEdit2(e);
    }
    

    Related

    • How to run multiple onEdit functions in the same google script (google sheets)?
    • Bracketing multiple onEdit functions
    • Best Practices for Multiple OnEdit Functions
    0 讨论(0)
提交回复
热议问题