- Katılım
- 19 Nisan 2012
- Mesajlar
- 44
- Excel Vers. ve Dili
- 2010
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Sub RENKLENDIR()
Dim Veri As Range, Renk As Byte
Range("A3:A" & Rows.Count).Interior.ColorIndex = xlNone
Renk = 6
For Each Veri In Range("A3:A" & Cells(Rows.Count, 1).End(3).Row)
If Veri.Value <> Veri.Offset(-1, 0).Value Then
If Veri.Offset(-1, 0).Interior.ColorIndex = Renk Then
Veri.Interior.ColorIndex = IIf(Renk = 6, 43, 6)
Else
Veri.Interior.ColorIndex = Renk
End If
Else
Veri.Interior.ColorIndex = Veri.Offset(-1, 0).Interior.ColorIndex
End If
Next
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub