Hi All,
I have created a Random Number Generator using the code below
Private Sub CommandButton1_Click()
Range("d2") = WorksheetFunction.RandBetween(-2, 2)
Range("d3") = WorksheetFunction.RandBetween(-2, 2)
which works exactly how I want it to
What I would like to do from here is generate a second button code to produce a 2nd random number using the first rand number as it's lowest value - but the code I thought would work doesn't - can anyone help please.
The code I used:
Range("f2") = WorksheetFunction.RandBetween(D2, 2)
Range("f3") = WorksheetFunction.RandBetween(D3, 2)
I have created a Random Number Generator using the code below
Private Sub CommandButton1_Click()
Range("d2") = WorksheetFunction.RandBetween(-2, 2)
Range("d3") = WorksheetFunction.RandBetween(-2, 2)
which works exactly how I want it to
What I would like to do from here is generate a second button code to produce a 2nd random number using the first rand number as it's lowest value - but the code I thought would work doesn't - can anyone help please.
The code I used:
Range("f2") = WorksheetFunction.RandBetween(D2, 2)
Range("f3") = WorksheetFunction.RandBetween(D3, 2)