ruhadam26
Altın Üye
- Katılım
- 4 Aralık 2017
- Mesajlar
- 117
- Excel Vers. ve Dili
- 2010-2016 türkçe
- Altın Üyelik Bitiş Tarihi
- 20-12-2025
#
deger2 = TextBox71.Value
Select Case ComboBox2.Value
Case "Proje Adı"
For sat2 = 2 To Cells(65536, "b").End(xlUp).Row
Set deger1 = Cells(sat2, "b")
If UCase(deger1) Like UCase(deger2) & "*" Then
ListBox2.AddItem
ListBox2.List(s, 1) = Cells(sat2, "B")
ListBox2.List(s, 2) = Cells(sat2, "C")
ListBox2.List(s, 3) = Cells(sat2, "D")
ListBox2.List(s, 4) = Cells(sat2, "E")
ListBox2.List(s, 5) = Cells(sat2, "F")
ListBox2.List(s, 6) = Cells(sat2, "G")
ListBox2.List(s, 7) = Cells(sat2, "H")
ListBox2.List(s, 8) = Cells(sat2, "I")
ListBox2.List(s, 9) = Cells(sat2, "J")
ListBox2.List(s, 10) = Cells(sat2, "K")
ListBox2.List(s, 11) = Cells(sat2, "L")
ListBox2.List(s, 12) = Cells(sat2, "M")
ListBox2.List(s, 13) = Cells(sat2, "N")
ListBox2.List(s, 14) = Cells(sat2, "O")
ListBox2.List(s, 15) = Cells(sat2, "P")
ListBox2.List(s, 16) = Cells(sat2, "Q")
ListBox2.List(s, 17) = Cells(sat2, "R")
ListBox2.List(s, 18) = Cells(sat2, "S")
ListBox2.List(s, 19) = Cells(sat2, "T")
ListBox2.List(s, 20) = Cells(sat2, "U")
ListBox2.List(s, 21) = Cells(sat2, "V")
ListBox2.List(s, 22) = Cells(sat2, "W")
ListBox2.List(s, 23) = Cells(sat2, "Y")
ListBox2.List(s, 24) = Cells(sat2, "Z")
ListBox2.List(s, 25) = Cells(sat2, "AA")
ListBox2.List(s, 26) = Cells(sat2, "AB")
'......
.
.
ListBox2.List(s, 103) = Cells(sat2, "CY")
s = s + 1
End If: Next
End Select
#
bu kodlarla bir çalışmam var CY sutununa kadar yazmam gerekecek ki bir döngü lazım. ama o döngüyü bir türlü kuramadım yardımcı olursanız işimi büyük ölçüde kolay kılacak. çÜnkü bu kodlar bir seçim bunun gibi 4 seçim daha var. birisi olursa diğerlerini halledebilir. Şimdiden teşekkürler
deger2 = TextBox71.Value
Select Case ComboBox2.Value
Case "Proje Adı"
For sat2 = 2 To Cells(65536, "b").End(xlUp).Row
Set deger1 = Cells(sat2, "b")
If UCase(deger1) Like UCase(deger2) & "*" Then
ListBox2.AddItem
ListBox2.List(s, 1) = Cells(sat2, "B")
ListBox2.List(s, 2) = Cells(sat2, "C")
ListBox2.List(s, 3) = Cells(sat2, "D")
ListBox2.List(s, 4) = Cells(sat2, "E")
ListBox2.List(s, 5) = Cells(sat2, "F")
ListBox2.List(s, 6) = Cells(sat2, "G")
ListBox2.List(s, 7) = Cells(sat2, "H")
ListBox2.List(s, 8) = Cells(sat2, "I")
ListBox2.List(s, 9) = Cells(sat2, "J")
ListBox2.List(s, 10) = Cells(sat2, "K")
ListBox2.List(s, 11) = Cells(sat2, "L")
ListBox2.List(s, 12) = Cells(sat2, "M")
ListBox2.List(s, 13) = Cells(sat2, "N")
ListBox2.List(s, 14) = Cells(sat2, "O")
ListBox2.List(s, 15) = Cells(sat2, "P")
ListBox2.List(s, 16) = Cells(sat2, "Q")
ListBox2.List(s, 17) = Cells(sat2, "R")
ListBox2.List(s, 18) = Cells(sat2, "S")
ListBox2.List(s, 19) = Cells(sat2, "T")
ListBox2.List(s, 20) = Cells(sat2, "U")
ListBox2.List(s, 21) = Cells(sat2, "V")
ListBox2.List(s, 22) = Cells(sat2, "W")
ListBox2.List(s, 23) = Cells(sat2, "Y")
ListBox2.List(s, 24) = Cells(sat2, "Z")
ListBox2.List(s, 25) = Cells(sat2, "AA")
ListBox2.List(s, 26) = Cells(sat2, "AB")
'......
.
.
ListBox2.List(s, 103) = Cells(sat2, "CY")
s = s + 1
End If: Next
End Select
#
bu kodlarla bir çalışmam var CY sutununa kadar yazmam gerekecek ki bir döngü lazım. ama o döngüyü bir türlü kuramadım yardımcı olursanız işimi büyük ölçüde kolay kılacak. çÜnkü bu kodlar bir seçim bunun gibi 4 seçim daha var. birisi olursa diğerlerini halledebilir. Şimdiden teşekkürler