Using Excel 2010, I ran into the same issues as Brian. When I tried all the solutions offered here, there was no improvement, the user-defined function was not recalculated, despite the existence of Application.Volatile, the use of recalculation key combinations, etc. However, I realized that my definition of the function is to blame for the fact that all the cell references in it are not qualified enough to work correctly when the sheet containing this function was not an active sheet, for example, changing cells (a, b) to Application.Caller .Worksheet.Cells (a, b) fixed the problem! I believe this is a solution because when the sheet containing my function is not the active cells of the sheet (a, b), it is interpreted as referring to any sheet that was active at that time.
Seggy224 Sep 24 '15 at 4:25 2015-09-24 04:25
source share