User Defined Functions NOT recalculating

后端 未结 11 2059
渐次进展
渐次进展 2020-12-15 20:27

I recently took a large, stable XLSM file, and split it apart into an XLAM and XLSX. Thousands of cells in the XLSX call (udfs) functions in the XLAM, and each such udf beg

11条回答
  •  鱼传尺愫
    2020-12-15 21:03

    Excel will monitor the range mentioned in the formula for any change, I faced this today and I was thinking and realized that. So to fix it, make a dummy argument in your function which takes the range you want to monitor or create a dummy function. In my case I called it monitorRange which returns nothing

    Function monitorRange(rng As Range)
    End Function
    

    and I mentioned it in my formula example

    =myfunction(a,b) & monitorRange(RANGE_TO_MONITOR)
    

    This worked very well and it should work with any other function

提交回复
热议问题