...worked it out guys.
Private Sub CommandButton1_Click()
With Worksheets("Sheet1").Columns("A:A")
Do
rand = Rnd()
Set oCell = .Find(rand)
Loop Until oCell Is Nothing
Worksheets("Sheet1").Range("a1").Value = rand
End With
End Su
--
Message posted from
http://www.ExcelForum.com