DragPlot Event

Microsoft Excel Visual Basic

DragPlot Event

       

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

Private Sub object_DragPlot()

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

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