Hi,
Could someone please help me edit this to make sure no duplicates are created?
Thank you!
Could someone please help me edit this to make sure no duplicates are created?
Code:
Sub RandPT_Ver2()Dim PT As Double, Num As Double
PT = InputBox("Enter The Total Unique Names", "Enter a Number")
Num = InputBox("Enter The 25% ", "Enter a Number")
For X = 1 To Num
Range(ActiveCell, ActiveCell.Offset(0, 0)).Offset(X - 1) = Int((PT * rnd) + 1)
Next X
End Sub
Thank you!