Entering functions in code

M

merjet

How can you use the random function within your code?

If you mean the worksheet function RAND, it is not available
in VBA. However, Rnd() is its equivalent.

X = Rnd() would assign to X a number >=0 and <1.

HTH,
Merjet
 
Top