I have a VBA function that I reference in a cell formula. The VBA function uses values of cells elsewhere in the workbook (a table lookup) to calculate the function result. When I change a value in the table, this should cause the VBA function to calculate a new value for the cell containing that function in its formula. Even though I have autocalculate on (or even when I press F9), the recalculations aren’t happening. If I edit one of the cells containing the VBA function, then everything recalculates the way it should.
Is there a way to get Excel to recalculate everything automatically when values in the referenced table are changed?
Thanks.