I need to modify a line chart based on the MarkerBackgroundColorIndex of a third party software company. This works unless a point does not have a value, like the first point in a moving average chart (Error #1004 unable to get MarkerBackgroundColorIndex ...).
It don't think it would be difficult... but I cannot figure out how to bypass any point that does not have a value and such as such a MarkerBackgroundColorIndex
Dim pnt As Point
For Each pnt In ActiveChart.SeriesCollection(ActiveChart.SeriesCollection.Count).Points
If pnt.MarkerBackgroundColorIndex = 3 Then
With pnt
.Border.ColorIndex = 11
.Border.Weight = xlMedium
.Border.LineStyle = xlDot
ect.
It don't think it would be difficult... but I cannot figure out how to bypass any point that does not have a value and such as such a MarkerBackgroundColorIndex
Dim pnt As Point
For Each pnt In ActiveChart.SeriesCollection(ActiveChart.SeriesCollection.Count).Points
If pnt.MarkerBackgroundColorIndex = 3 Then
With pnt
.Border.ColorIndex = 11
.Border.Weight = xlMedium
.Border.LineStyle = xlDot
ect.