multivizyon
Banned
- Katılım
- 6 Şubat 2010
- Mesajlar
- 21
- Excel Vers. ve Dili
- tükçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton1_Click()
Dim Satir As Integer, Sutun As Byte
Dim Veri As Collection, X As Integer
Dim Adres As Variant
Application.ScreenUpdating = False
Set Veri = New Collection
Range("K1:K416").Clear
10 Randomize Timer
Satir = Int(52 * Rnd + 1)
Sutun = Int(8 * Rnd + 1)
On Error Resume Next
X = X + 1
Veri.Add Cells(Satir, Sutun).Address, CStr(X)
On Error GoTo 0
If Veri.Count < 416 Then
GoTo 10
Else
X = 0
For Each Adres In Veri
X = X + 1
Range(Adres).Copy Range("K" & X)
Next
End If
Application.ScreenUpdating = True
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
Sub rastgelekagıt59()
Randomize Timer
Dim col As Collection, sat As Long, i As Long
sat = Cells(Rows.Count, "A").End(xlUp).Row
Set col = New Collection
Range("K:K").ClearContents
For i = 1 To sat
col.Add Cells(i, "A").Value
Next i
Do While col.Count >= 1
say = say + 1
deg = Int(Rnd() * col.Count) + 1
Cells(say, "K").Value = col(deg)
col.Remove (deg)
Loop
MsgBox "İşlem tamamlandı." & vbLf & "evrengizlen@hotmail.com", vbOKOnly + vbInformation
End Sub