Do listu ADC si vsuň toto makro
Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.Row
Case 13, 10
For i = 1 To 500
ActiveSheet.ChartObjects("Graf 2").Activate
ActiveChart.SeriesCollection(3).Points(i).Select
With Selection.Format.Fill
Select Case UCase(Range("C10").Offset(0, i))
Case "A"
.ForeColor.RGB = RGB(255, 255, 0)
Case "B"
.ForeColor.RGB = RGB(0, 176, 240)
Case "C"
.ForeColor.RGB = RGB(146, 208, 80)
Case Else
Exit For
End Select
End With
Next i
Case Else
End Select
End Sub
citovat
Private Sub Worksheet_Change(ByVal Target As Range)
Select Case Target.Row
Case 13, 10
For i = 1 To 500
ActiveSheet.ChartObjects("Graf 2").Activate
ActiveChart.SeriesCollection(3).Points(i).Select
With Selection.Format.Fill
Select Case UCase(Range("C10").Offset(0, i))
Case "A"
.ForeColor.RGB = RGB(255, 255, 0)
Case "B"
.ForeColor.RGB = RGB(0, 176, 240)
Case "C"
.ForeColor.RGB = RGB(146, 208, 80)
Case Else
Exit For
End Select
End With
Next i
Case Else
End Select
End Sub
citovat