Private Sub Worksheet_Activate()
For i = 1 To 6
工作表2.Cells(i, 1).Value = ""
Next
Dim A(6)
For i = 1 To 6
A(i) = WorksheetFuntion.RandBetween(1, 42)
Next
Private Sub Worksheet_Calculate()
Do
[a2:a6] = "=RandBetween(1, 42)"
Loop Until [sumproduct(1/countif(a1:a6,a1:a6))] = 6
End Sub作者: jonlylovek 時間: 2010-11-30 10:49