Greetings,
I have a UDF that uses data from one sheet to display result in a second sheet. I added the “Application.Volatile” statement so that the result in the second sheet is automatically refreshed if data in the first sheet changes.
However, I have now noticed that if I run any macro in the workbook, the UDF gives “#VALUE!”. I have to manually click in the cell and hit the ENTER button in order to get the result.
A solution offered was to add the line
before the "End Sub" to calculate the workbook before the macro ends.![]()
Please Login or Register to view this content.
However, I have several macros in the my workbook and was wondering if something can be done at the workbook level instead of the adding the “calculate” line in every macro?
The UDF is
Many thanks![]()
Please Login or Register to view this content.
Asha
Bookmarks