Merhaba aşağıdaki kod belirtilen aralıkta rastgele hücre seçiyor. Yapmak istediğim bu aralıktaki sadece boş hücreleri rastgele seçsin. yapılabilir mi?
Sub çalıştır()
On Error Resume Next
Dim RNG As Range
Set RNG = Range("A1:b1")
Dim randomCell As Long
Do until şu şart gerçeklecince
randomCell = Int(Rnd * RNG.Cells.Count) + 1
With RNG.Cells(randomCell)
.Select
End With
Loop
End Sub
Sub çalıştır()
On Error Resume Next
Dim RNG As Range
Set RNG = Range("A1:b1")
Dim randomCell As Long
Do until şu şart gerçeklecince
randomCell = Int(Rnd * RNG.Cells.Count) + 1
With RNG.Cells(randomCell)
.Select
End With
Loop
End Sub