google script detect empty cell after edit or delete

前端 未结 4 384
情深已故
情深已故 2020-12-04 00:04

I have a problem with my code. It seems fine but it doesn\'t work and I really don\'t know why. I tried everything.

I want sync my google excel with my google calen

4条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 00:38

    As of 10/21/2019, I no longer find these work arounds to work. When a cell has a value and then that value is deleted with a backspace or delete keystroke, google returns e.oldvalue as expected, but e.value has an odd object in it instead of a falsy response. It's a pretty confusing bug that is really confusing for those trying to automate with gSheets. The new work around now includes checking for data type. Here is a link to the new issue fully documented including the new work around.

提交回复
热议问题