Share via


Chart.SeriesChange Event

Excel Developer Reference

Occurs when the user changes the value of a chart data point by clicking a bar in the chart and dragging the top edge up or down thus changing the value of the data point.

Syntax

expression.SeriesChange(SeriesIndex, PointIndex)

expression   A variable that represents a Chart object.

Parameters

Name Required/Optional Data Type Description
SeriesIndex Required Long The offset within the Series collection for the changed series.
PointIndex Required Long The offset within the Points collection for the changed point.

Return Value
Nothing

Example

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

Visual Basic for Applications
  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

See Also