Üç tablodan veri alma

Katılım
30 Nisan 2006
Mesajlar
88
Excel Vers. ve Dili
Office 2013 EN
Ek'teki örnek dosyada, üç ve ya daha fazla listeden seçili olanları başka bir listede boşluksuz olarak listelekmek istiyorum.
 
Katılım
14 Şubat 2006
Mesajlar
3,426
Excel Vers. ve Dili
(Excel 2016 - İngilizce)
Altın Üyelik Bitiş Tarihi
30-11-2022
Aağıdaki kodları kullanabilirsiniz.

Kod:
Sub Listele()
Set s1 = Sheets("Sayfa1")
s1.[a5:c100].ClearContents
[a5].Select
For i = 5 To s1.[f65536].End(3).Row
If s1.Cells(i, "h").Value > 0 Then
sat = s1.[a65536].End(3).Row + 1
s1.Cells(sat, "a").Value = s1.Cells(i, "f").Value
s1.Cells(sat, "b").Value = s1.Cells(i, "g").Value
s1.Cells(sat, "c").Value = s1.Cells(i, "h").Value
End If
Next i
For i = 5 To s1.[j65536].End(3).Row
If s1.Cells(i, "L").Value > 0 Then
sat = s1.[a65536].End(3).Row + 1
s1.Cells(sat, "a").Value = s1.Cells(i, "j").Value
s1.Cells(sat, "b").Value = s1.Cells(i, "k").Value
s1.Cells(sat, "c").Value = s1.Cells(i, "L").Value
End If
Next i
For i = 5 To s1.[n65536].End(3).Row
If s1.Cells(i, "p").Value > 0 Then
sat = s1.[a65536].End(3).Row + 1
s1.Cells(sat, "a").Value = s1.Cells(i, "n").Value
s1.Cells(sat, "b").Value = s1.Cells(i, "o").Value
s1.Cells(sat, "c").Value = s1.Cells(i, "p").Value
End If
Next i
MsgBox "Bitti"
Set s1 = Nothing
End Sub
 
Katılım
30 Nisan 2006
Mesajlar
88
Excel Vers. ve Dili
Office 2013 EN
Teşekkürler sayın ripek, beni büyük derttten kurtardınız.
 
Üst