Excel VBA Re-run formulas (update) when any cell in sheet changes
问题 I've written a Function in VBA to return a certain value based on certain cells' values. I execute/run this function in a formula on a certain cell =MyFunction() My problem is, the cells which have the above formula don't automatically update if the cells used in the function (in VBA) are changed. How can I re-run or update or re-execute the above formula if the certain cells that are used are changed? 回答1: You must recode your UDF to achieve the desired volatility. Say you want the UDF to re