Syntax

expression.MouseDown(Button, Shift, x, y)

expression A variable that represents a Chart object.

Parameters

Name Required/Optional Data Type Description
Button Required Long The mouse button that was released. Can be one of the following constants: xlNoButton, xlPrimaryButton, xlSecondaryButton, or xlMiddleButton.
Shift Required Long The state of the SHIFT, CTRL, and ALT keys when the event occurred. Can be one of or a sum of values.
x Required Long The X coordinate of the mouse pointer in chart object client coordinates.
y Required Long The Y coordinate of the mouse pointer in chart object client coordinates.

Return Value
Nothing

Example

This example runs when a mouse button is pressed while the pointer is over a chart.

Visual Basic for Applications
Private Sub Chart_MouseDown(ByVal Button As Long, _ ByVal Shift As Long, ByVal X As Long, ByVal Y As Long) MsgBox "Button = " & Button & chr$(13) & _ "Shift = " & Shift & chr$(13) & _ "X = " & X & " Y = " & Y End Sub
mouse down Mouse Down Event mousedown mousedown event When a mouse button is pressed while the pointer is over the chart?

See also: