View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Unknown_User[_7_] Unknown_User[_7_] is offline
external usenet poster
 
Posts: 1
Default Check a cell for duplicates.

...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