- Katılım
- 6 Temmuz 2008
- Mesajlar
- 1,875
- Excel Vers. ve Dili
- OFFİCE 2010- TÜRKÇE
- Altın Üyelik Bitiş Tarihi
- 22-12-2019
Kod:
Dim dizi
Dim i As Long
Dim dic As Object 'Scripting.Dictionary
dizi = ml.Range("D2:D65536")
Set dic = CreateObject("scripting.dictionary")
With dic
For i = 2 To UBound(dizi, 1)
If Not .exists(dizi(i, 1)) Then
.Add CStr(dizi(i)), ""
End If
Next i
If .Count Then
stok.KA.List = Application.Transpose(.keys)
End If
End With
"Out of range" hatası veriyor