- Katılım
- 15 Nisan 2019
- Mesajlar
- 10
- Excel Vers. ve Dili
- türkce
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub renksay()
Dim ilksatir,ilksutun,sonsatir,sonsutun,sutun,satir As Integer
sonsutun = Sheets("Sayfa1").Range("XX1").End(xlToLeft).Column '1. Satıra baktık.
sonsatir = Sheets("Sayfa1").Range("A6000").End(xlUp).Row
ilksatir = 2
ilksutun = 4
For satir = ilksatir To sonsatir
Cells(satir, 2) = 0
Cells(satir, 3) = 0
For sutun = ilksutun To sonsutun
If Cells(satir, sutun).Interior.ColorIndex = 3 Then Cells(satir, 2) = Cells(satir, 2) + 1
If Cells(satir, sutun).Interior.ColorIndex = 43 Then Cells(satir, 3) = Cells(satir, 3) + 1
Next
Next
End Sub