SeriesChange Event

Applies To

Chart object.

Description

Occurs when the user changes the value of a chart data point.

Syntax

Private Sub object_SeriesChange(ByVal SeriesIndex As Long, ByVal PointIndex As Long)

object An object of type Chart declared with events in a class module.

SeriesIndex The offset within the Series collection for the changed series.

PointIndex The offset within the Points collection for the changed point.

Example

This example changes the point's border color when the user changes the point value.

Private Sub Chart_SeriesChange(ByVal SeriesIndex As Long, _
        ByVal PointIndex As Long)
    Set p = Me.SeriesCollection(SeriesIndex).Points(PointIndex)
    p.Border.ColorIndex = 3
End Sub