- Katılım
- 24 Şubat 2009
- Mesajlar
- 1,077
- Excel Vers. ve Dili
- 2016
Merhaba arkadaşlar; aşağıdak kod ile Userform1 üzerinde bulunan ComboBoxlara veri alıyor, ancak aynı kod Userform2 de çalışmıyor
Combolar "GİDEN" Sayfasından alacak. Teşekkürler.
For X = 2 To Cells(65536, 3).End(xlUp).Row
If WorksheetFunction.CountIf(Range("B2:B" & X), Cells(X, 2)) = 1 Then
ComboBox1.AddItem Cells(X, 2).Value
End If
If WorksheetFunction.CountIf(Range("E2:E" & X), Cells(X, 5)) = 1 Then
ComboBox2.AddItem Cells(X, 5).Value
End If
If WorksheetFunction.CountIf(Range("G2:G" & X), Cells(X, 7)) = 1 Then
ComboBox4.AddItem Cells(X, 7).Value
End If
Combolar "GİDEN" Sayfasından alacak. Teşekkürler.
For X = 2 To Cells(65536, 3).End(xlUp).Row
If WorksheetFunction.CountIf(Range("B2:B" & X), Cells(X, 2)) = 1 Then
ComboBox1.AddItem Cells(X, 2).Value
End If
If WorksheetFunction.CountIf(Range("E2:E" & X), Cells(X, 5)) = 1 Then
ComboBox2.AddItem Cells(X, 5).Value
End If
If WorksheetFunction.CountIf(Range("G2:G" & X), Cells(X, 7)) = 1 Then
ComboBox4.AddItem Cells(X, 7).Value
End If
