• DİKKAT

    DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
    Altın Üyelik Hakkında Bilgi

Renge Göre Veri Çekmek

Katılım
9 Ekim 2021
Mesajlar
343
Excel Vers. ve Dili
excell 2013
Ç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

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
 
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.
 
Geri
Üst