DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim sat As Integer
If Intersect(Target, [a:j]) Is Nothing Then Exit Sub
[a2:j1000].Interior.ColorIndex = xlNone
For sat = 2 To Cells(65536, "h").End(xlUp).Row
If Cells(sat, "h") = 100 Then Range(Cells(sat, "a"), Cells(sat, "j")).Interior.ColorIndex = 6
If Cells(sat, "h") = 75 Then Range(Cells(sat, "a"), Cells(sat, "j")).Interior.ColorIndex = 5
If Cells(sat, "h") = 40 Then Range(Cells(sat, "a"), Cells(sat, "j")).Interior.ColorIndex = 24
If Cells(sat, "h") = 50 Then Range(Cells(sat, "a"), Cells(sat, "j")).Interior.ColorIndex = 7
If Cells(sat, "h") = 0 Then Range(Cells(sat, "a"), Cells(sat, "j")).Interior.ColorIndex = 3
Next
End Sub
sayın ziya bey;
ben kodlardan henüz hiç birşey anlıyamıyorum, o yüzdende kullanamıyorum ve excelde çözümlerimi hep başka yollardan aradım.
bir dosya hazırladım, farklı bir şekilde kod kullanmadan, çalışmamla ilgili bu konuda düşüncelerinizi bildirirseniz sevinirim.
saygılarımla;
yanıt
Kodlar sayfa kod bölümünde olacak
Kod:Private Sub Worksheet_SelectionChange(ByVal Target As Range) Dim sat As Integer If Intersect(Target, [a:j]) Is Nothing Then Exit Sub [a2:j1000].Interior.ColorIndex = xlNone For sat = 2 To Cells(65536, "h").End(xlUp).Row If Cells(sat, "h") = 100 Then Range(Cells(sat, "a"), Cells(sat, "j")).Interior.ColorIndex = 6 If Cells(sat, "h") = 75 Then Range(Cells(sat, "a"), Cells(sat, "j")).Interior.ColorIndex = 5 If Cells(sat, "h") = 40 Then Range(Cells(sat, "a"), Cells(sat, "j")).Interior.ColorIndex = 24 If Cells(sat, "h") = 50 Then Range(Cells(sat, "a"), Cells(sat, "j")).Interior.ColorIndex = 7 If Cells(sat, "h") = 0 Then Range(Cells(sat, "a"), Cells(sat, "j")).Interior.ColorIndex = 3 Next End Sub