View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.programming
Niek Otten Niek Otten is offline
external usenet poster
 
Posts: 3,440
Default Can I force my UD Functions to recalculate?

Just to add to Charles' reply:

You said it was a mistake not to make the functions volatile. I don't agree.
If your functions process data from your worksheets, the only right thing to
do is to supply that data in the arguments of the function. So don't access
tha data directly from within your function.
Then you don't need Application.Volatile and the functions will be
recalculated if and only if the precendent cells have changed.
It might be different if your functions get data from outside Excel, which
is refreshed without Excel knowing.

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Charles Williams" wrote in message
...
If you cannot change the code in your functions your only option is to
tell your users to use
Ctrl/Alt/F9 to force Excel to recalculate every single formula in every
open workbook.

Charles
___________________________________
The Excel Calculation Site
http://www.decisionmodels.com

"Michelle" wrote in message
...
I have a project with lots of functions, which I didn't make 'volatile' (I
realise now, that that was a mistake).

I want the users of the spreadsheet to be able to press a key or take an
action which will make the functions recalculate.

For reasons that are too involved to mention here, I don't want to add
any code to the functions now.

I just want to provide the user with an action they can take to make
everything update.

F9, Tools-options-CalcNow don't work. Any ideas?

Thanks
M