Hi Govert,
We have implemented couple of excel UDF functions using ExcelDNA however when the user hits”F9”, it refreshes all the sheets including the sheet with ExcelDNA functions. Is there any way I could disable refresh(F9) function for the excel dna fucntions?
Any help is really appreciated.
Thanks a lot,
Siva Gowrishetti
If the function itself is not volatile, it will not recompute unless an input value changed – maybe you have a volatile input, e.g. a function call of reference to a cell that has a built-in volatile formula like =NOW() or =TODAY().
Excel-DNA functions are not different to built-in functions in terms of when they recalculate.
Normal Excel-DNA functions won’t recalculate just because you press F9, whether it’s the active sheet or not.
If you switch Excel to Manual calculation mode, you can recalculate the current sheet by Shift+F9.
Note that manual mode can be a bit confusing, as it is a global setting but also saved in the workbook.
-Govert
--
You received this message because you are subscribed to the Google Groups "Excel-DNA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
exceldna+u...@googlegroups.com.
To post to this group, send email to exce...@googlegroups.com.
Visit this group at https://groups.google.com/group/exceldna.
For more options, visit https://groups.google.com/d/optout.
I don’t know of any further calculation flexibility that Excel gives us beyond the manual mode.
Internally in your functions you can do things like cache recent results and return the cached value rather than doing a slow calculation again. That way you can control how much work your function does at different times.