This relates to Excel97 running on NT4.
I have a VBA function I coded that is used in a number of worksheet cells. Its been working quite happily for the last couple of years. Coding for the function is in a normal module in the workbook it is used in.
The workbook (call it wb1) is fairly bulky so the coding and forms for certain of the VBA systems it uses, are in separate workbooks. I'm in course of changing one of these (call that wb2). At the end of the system in wb2, it changes the values in certain cells in wb1 which happen to be precedent cells of the cells using the VBA formula. When it is run the cells using the VBA function are all returning #Name? afterwards. The only way that I seem to be able to clear these values is by saving and closing the file and reopening it, whereupon the function recalculates itself producing some proper results.
I've tried inserting Range.Calculate into my code without success.
Does anyone know how to force the function to calculate itself?
Cheers
Roger
PS TGIF
I have a VBA function I coded that is used in a number of worksheet cells. Its been working quite happily for the last couple of years. Coding for the function is in a normal module in the workbook it is used in.
The workbook (call it wb1) is fairly bulky so the coding and forms for certain of the VBA systems it uses, are in separate workbooks. I'm in course of changing one of these (call that wb2). At the end of the system in wb2, it changes the values in certain cells in wb1 which happen to be precedent cells of the cells using the VBA formula. When it is run the cells using the VBA function are all returning #Name? afterwards. The only way that I seem to be able to clear these values is by saving and closing the file and reopening it, whereupon the function recalculates itself producing some proper results.
I've tried inserting Range.Calculate into my code without success.
Does anyone know how to force the function to calculate itself?
Cheers
Roger
PS TGIF