DragPlot Event [Excel 2003 VBA Language Reference]

Occurs when a range of cells is dragged and dropped on a chart.

Private Subobject**_DragPlot()**

object An object of type Chart declared with events in a class module. For more information, see Using Events with Embedded Charts.

Example

This example changes the chart type when a range of cells is dragged and dropped on a chart.

Private Sub Chart_DragPlot()
    Me.ChartType = xlLine
End Sub

Applies to | Chart Object