- Katılım
- 1 Temmuz 2008
- Mesajlar
- 1,748
- Excel Vers. ve Dili
- 2019 TR
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Range("f2:IV5000").Interior.ColorIndex = xlNone
Range("f2").Select
Sub Renklendir()
Dim i As Integer
Dim j As Integer
Dim BasKol As Integer
Dim BitKol As Integer
Application.ScreenUpdating = False
BasKol = 6
j = Cells(Rows.Count, "E").End(3).Row
Range("F2:IV" & j).Interior.ColorIndex = xlNone
For i = 2 To j
BitKol = BasKol + Cells(i, "E") - 1
Range(Cells(i, BasKol), Cells(i, BitKol)).Interior.ColorIndex = 3
BasKol = BitKol + 1
Next i
Application.ScreenUpdating = True
MsgBox "İşlem Tamamdır...", vbInformation, "N. YEŞERTENER ----> [URL="http://www.excel.web.tr/"]www.excel.web.tr[/URL]"
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [E:E]) Is Nothing Then Exit Sub
If Target.Row < 2 Then Exit Sub
Dim i As Integer
Dim j As Integer
Dim BasKol As Integer
Dim BitKol As Integer
Application.ScreenUpdating = False
BasKol = 6
j = Cells(Rows.Count, "E").End(3).Row
Range("F2:IV" & j).Interior.ColorIndex = xlNone
For i = 2 To j
BitKol = BasKol + Cells(i, "E") - 1
Range(Cells(i, BasKol), Cells(i, BitKol)).Interior.ColorIndex = 3
BasKol = BitKol + 1
Next i
Application.ScreenUpdating = True
End Sub