Hello and welcome to the forum,
Randbetween is both available in Excel versions 2003 and up. I don't know why you're not seeing it.
Luckily there is already a workaround ready on Chip Pearson's site. I have tweaked it and works fine on my computer:
Option Explicit
Sub RandMe()
Dim e%, Low#, High#, R%, Arr(1 To 4)
For e = 1 To 4
Low = 81 '<<< CHANGE AS DESIRED
High = 103 '<<< CHANGE AS DESIRED
R = Int((High - Low + 1) * Rnd() + Low)
Arr(e) = R
Next
Range("B34:B37") = Application.Transpose(Arr)
End Sub
The short version would be:
Option Explicit
Sub RandMe()
Dim e%, Arr(1 To 4)
For e = 1 To 4
Arr(e) = Int(23 * Rnd() + 81)
Next
Range("B34:B37") = Application.Transpose(Arr)
End Sub
abousetta
Bookmarks