You would have to replace the =RAND() formula with its value when you want
to "freeze" it. E.g.,
Range("A1").Value = Range("A1").Value
Setting the Value property wipes out the formula so the cell will no longer
be updated (ever).
--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)
"Jo" wrote in message
ups.com...
Hi everyone,
Say you have in A1, A2 two formulas with Rand() in each. Say you have
a macro that does freez A1 when it hits its target value, while A2
keeps running till it hits its target value.
My question is how to freez Rand()?
Thanks,
Jo