Trigger spreadsheet recalculation from script

前端 未结 2 1980
萌比男神i
萌比男神i 2021-01-28 09:48

I have a script that can delete one or more named ranges. However, the sheet does not recompute either after the script finishes or after a flush command is given. The only way

2条回答
  •  盖世英雄少女心
    2021-01-28 10:15

    Actually, INDIRECT skips dependencies, and always recalculates on any cell change. Its good practice to avoid INDIRECT whenever possible because of this.

    That's why you can make it recalculate by just changing a cell.

    Since deleting ranges doesn't change cells, INDIRECT won't recalculate.

提交回复
热议问题