Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
If Target.Cells.Count > 1 Then Exit Sub
On Error GoTo ws_exit:
Set rng = Aplication(Source, Me.Range("c:c"))
Set rng = Aplication.Intersect(Target, Me.Range("p
"))
If rng Is Nothing Then Exit Sub
With Target
Select Case UCase(.Value)
'Burada "" içindeki rakamlar yerine sözcükler yazılabilir.
' = İşaretinden sonra yer alan sayılar renk indeksidir.
' örnek olarak "C:5" DE 3 YAZDIĞIMIZDA "P:5" TEKİ HÜCRE KIRMIZI YAPMAK İSTİYORUM"
Case Is = "1": .Interior.ColorIndex = 1
Case Is = "2": .Interior.ColorIndex = 2
Case Is = "3": .Interior.ColorIndex = 3
Case Is = "4": .Interior.ColorIndex = 4
Case Is = "5": .Interior.ColorIndex = 5
Case Is = "6": .Interior.ColorIndex = 6
Case Is = "7": .Interior.ColorIndex = 7
Case Is = "8": .Interior.ColorIndex = 6
Case Is = "9": .Interior.ColorIndex = 9
Case Is = "10": .Interior.ColorIndex = 10
Case Is = "11": .Interior.ColorIndex = 11
Case Else
.Interior.ColorIndex = xlNone
End Select
End With
ws_exit:
End Sub
Dim rng As Range
If Target.Cells.Count > 1 Then Exit Sub
On Error GoTo ws_exit:
Set rng = Aplication(Source, Me.Range("c:c"))
Set rng = Aplication.Intersect(Target, Me.Range("p
If rng Is Nothing Then Exit Sub
With Target
Select Case UCase(.Value)
'Burada "" içindeki rakamlar yerine sözcükler yazılabilir.
' = İşaretinden sonra yer alan sayılar renk indeksidir.
' örnek olarak "C:5" DE 3 YAZDIĞIMIZDA "P:5" TEKİ HÜCRE KIRMIZI YAPMAK İSTİYORUM"
Case Is = "1": .Interior.ColorIndex = 1
Case Is = "2": .Interior.ColorIndex = 2
Case Is = "3": .Interior.ColorIndex = 3
Case Is = "4": .Interior.ColorIndex = 4
Case Is = "5": .Interior.ColorIndex = 5
Case Is = "6": .Interior.ColorIndex = 6
Case Is = "7": .Interior.ColorIndex = 7
Case Is = "8": .Interior.ColorIndex = 6
Case Is = "9": .Interior.ColorIndex = 9
Case Is = "10": .Interior.ColorIndex = 10
Case Is = "11": .Interior.ColorIndex = 11
Case Else
.Interior.ColorIndex = xlNone
End Select
End With
ws_exit:
End Sub
