Entering functions in code

  • Thread starter Thread starter H.V.
  • Start date Start date
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
 
Back
Top