DragOver Event

Microsoft Excel Visual Basic

Occurs when a range of cells is dragged over a chart.

Private Sub object_DragOver()

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 displays the address of a range of cells dragged over a chart.

Private Sub Chart_DragOver()
    MsgBox Selection.Address
End Sub