calculateing cells on demand

L

Lars Schouw

What is the best way to make sure I have control overwhen cells are
calculated?

I have some very long running calculations and would like postpone
them until all the pre-conditions are setup.

I could use a boolean flag in an if statement but how do I do that
better inside of my UDF function?

Lars
 
T

Tom Ogilvy

This is what I do for my own use often even with Arrayformulas using built in
functions:

Public function ABC(rng as Range)
if Range("AB1") = 1 then
ABC = "Pending"
exit sub
End if
End Function

Put a 1 in AB1 when you don't want it to calculate.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top