Renge Göre Veri Çekmek

Katılım
9 Ekim 2021
Mesajlar
335
Excel Vers. ve Dili
excell 2013
Altın Üyelik Bitiş Tarihi
19-12-2023
Çok Değerli Excel Web Ailesine selamlar.

Benim sorum bir projeme entegre etmek istediğim bir özellik.Projemdeki aynı satır sütunların durumunu simultene ettim.Gereken Bütçe bölümündeki B1 deki renk koduyla uyuşan MAL-GİRİŞİ sekmesindeki verileri,Gereken Bütçe Sekmesine çekmek istiyorum.

Renge göre veri çekebileceğim bu özellik projemde çok işime yarayacaktır.

Şimdiden çok teşekkür ederim.
 

Ekli dosyalar

hamitcan

Uzman
Uzman
Katılım
1 Temmuz 2004
Mesajlar
7,712
Excel Vers. ve Dili
Excel 2019 Türkçe
Kod:
Sub test()
Sheets("GEREKEN BÜTÇE").[a5:c500].ClearContents
k = 4
With Sheets("MAL-GİRİŞİ")
    For i = 3 To .[B65536].End(3).Row
        If .Cells(i, 2).Interior.Color = Sheets("GEREKEN BÜTÇE").[b1].Interior.Color Then
            k = k + 1
            Sheets("GEREKEN BÜTÇE").Cells(k, 1) = .Cells(i, 2)
            Sheets("GEREKEN BÜTÇE").Cells(k, 2) = .Cells(i, "i")
            Sheets("GEREKEN BÜTÇE").Cells(k, 3) = .Cells(i, "ab")
        End If
    Next
End With
End Sub
 
Katılım
9 Ekim 2021
Mesajlar
335
Excel Vers. ve Dili
excell 2013
Altın Üyelik Bitiş Tarihi
19-12-2023
Kod:
Sub test()
Sheets("GEREKEN BÜTÇE").[a5:c500].ClearContents
k = 4
With Sheets("MAL-GİRİŞİ")
    For i = 3 To .[B65536].End(3).Row
        If .Cells(i, 2).Interior.Color = Sheets("GEREKEN BÜTÇE").[b1].Interior.Color Then
            k = k + 1
            Sheets("GEREKEN BÜTÇE").Cells(k, 1) = .Cells(i, 2)
            Sheets("GEREKEN BÜTÇE").Cells(k, 2) = .Cells(i, "i")
            Sheets("GEREKEN BÜTÇE").Cells(k, 3) = .Cells(i, "ab")
        End If
    Next
End With
End Sub
Buda çok güzel çalışıyor teşekkürler hamitcan hocam.
 
Üst