Need to stop UDFs recalculating when unrelated cells deleted

后端 未结 2 1826
长发绾君心
长发绾君心 2021-01-13 01:59

I\'ve noticed that my UDFs recalculate whenever I delete cells. This causes massive delays when deleting entire columns, because the UDF gets called for each and every cell

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-13 02:06

    Inserting or deleting a row or column or cell will always trigger a recalc in automatic mode. (You can check this by adding =NOW() to an empty workbook and inserting or deleting things)


    The question should be what (unexpected) circumstances flag a cell as dirty so that it gets recalced. There is a (probably incomplete) list of such things at http://www.decisionmodels.com/calcsecretsi.htm

    Looks like I need to add some words about VBA UDFs (have not tested XLL UDFs
    - they may behave differently since they are registered in a different way to VBA UDFs)

提交回复
热议问题