SeriesChange Event

Microsoft Excel Visual Basic

SeriesChange Event

       

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

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. For more information, see Using Events with the Chart Object.

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