MouseMove Event

Applies To

Chart object.

Description

Occurs when the position of the mouse pointer changes over a chart.

Syntax

Private Sub object_MouseMove(ByVal X As Long, ByVal Y As Long)

object An object of type Chart declared with events in a class module.

X The X coordinate of the mouse pointer in chart object client coordinates.

Y The Y coordinate of the mouse pointer in chart object client coordinates.

See Also

MouseDown event, MouseUp event.

Example

This example runs when the position of the mouse pointer changes over a chart.

Private Sub Chart_MouseMove(ByVal X As Long, ByVal Y As Long)
    MsgBox "X = " & X & " Y = " & Y
End Sub