Nesting a formula in a macro
Richard,
Oh, one more thing:-
You can also do the do the following where "R" is a variable:-
R = Application.Count(Range("I2:I100"))
regards,
JohnI
I have the following at the beginning of a macro:
R = Range("L1").Value
Is there a way to replace "L1" by the formula used in L1
itself.
Before excecuting the macro I put the following formula in
L1: =COUNT(I2:I100).
|