In can use code to set the colour of each point based on a set of value bands.
Sub x()
Dim objCht As ChartObject
Dim rngData As Range
Dim lngIndex As Long
Dim lngColor As Long
Set rngData = Range("C2:C6")
Set objCht = ActiveSheet.ChartObjects(1)
With objCht.Chart
With .SeriesCollection(1)
For lngIndex = 1 To .Points.Count
Select Case rngData.Cells(lngIndex, 1).Value
Case Is > 7
lngColor = RGB(0, 0, 255)
Case Is > 4
lngColor = RGB(0, 255, 0)
Case Else
lngColor = RGB(255, 0, 0)
End Select
With .Points(lngIndex).Format.Fill
.ForeColor.RGB = lngColor
.BackColor.RGB = lngColor
End With
Next
End With
End With
End Sub
In this case C2:C6 contains a value between 0 and 10 that has 1 of 3 colours assigned.
Bookmarks