Your code isn't actually changing cell A2. all it is doing is recalculating
the sheet. Is this what you wanted to do? Is there something else that is
changing A2?
> Your code isn't actually changing cell A2. all it is doing is recalculating
> the sheet. Is this what you wanted to do? Is there something else that is
[quoted text clipped - 24 lines]
>
> - Show quoted text -
When it recalculates the sheet, the random number does change and so
SCell does check the condition to see if satisfied or not. The macro
has to stop once SCell is satisfied.
That is all actually.
Mark Lincoln - 04 Oct 2007 21:43 GMT
You Dim an Integer variable SCell, then do nothing with it. Thus it
is always zero.
If you have a cell named "SCell" you can write something like this:
Range("J24").Select
Do Until Range("SCell").Value = 1
Calculate
Loop
> > Your code isn't actually changing cell A2. all it is doing is recalculating
> > the sheet. Is this what you wanted to do? Is there something else that is
[quoted text clipped - 31 lines]
>
> - Show quoted text -