I have a UDF I wrote and put in an add-in. I put it there (with a library of others) so that I can change functions and just deploy an updated add-in, thereby eliminating the need to modify hundreds of workbooks which invoke the subs/functions should I need to change them. This is all being done in Office 2007.
It had worked well until recently when users started moving to Windows 7. Now, only on Windows 7 (XP is still okay) there are #Name errors in cells. This occurs under specific conditions (only a problem for Scenario D below). In short, I have two workbooks each invoking, let’s call it, “FunctionX”, so let’s say cell A1 of each has “=FunctionX(parmA, parmB)”:
Scenairo A – If I open either workbook separately (All is well)
Scenario B—I open both workbooks at the same time (All is well)
Scenario C—I open both workbooks separately, one after the other, in different instances (All is well)
Scenario D—I open one workbook, then the second, in the same instance of excel (#Name errors in cells of first workbook invoking FunctionX)
I realize the work-around is to only operate via Scenarios A-C, however I keep getting users complaining about D. If they go into any invocation of FunctionX on the #Name offending cells and hit enter, the #Names go away, but a programmatic forced recalculate does not do this (my initial attempt at a band-aid). Is my only recourse to write a procedure that loops through all open workbooks, goes into a cell with my function forcing a code-driven enactment of what the user is doing, or am I missing something? Thanks…any/all advice appreciated.