Sub ChangeDataPointColor()
'
Dim Pt As Point
Dim Rng As Range
Dim x As Integer
Dim Y As Integer
Dim MyColor
Set Rng = ActiveSheet.Range("r4:r38")
x = 1
Y = 3
Application.ScreenUpdating = False
For Each Pt In ActiveSheet.ChartObjects("Chart 1").Chart.SeriesCollection(2).points
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(2).points(x).Select
If Range("r" & Y).Value < Range("R1") Then
MyColor = 3
Else
MyColor = 5
End If
With Selection.Border
.ColorIndex = MyColor
.Weight = xlThick
.LineStyle = xlContinuous
End With
With Selection
.MarkerBackgroundColorIndex = xlAutomatic
.MarkerForegroundColorIndex = xlAutomatic
.MarkerStyle = xlNone
.MarkerSize = 5
.Shadow = False
End With
x = x + 1
Y = Y + 1
Next Pt
Application.ScreenUpdating = True
End Sub