MouseUp Event

See Also         Example         Applies To

Occurs when a mouse button is released while the pointer is over a chart.

Syntax

Private Sub object_MouseUp(ByVal Button As Long, ByVal Shift As Long, ByVal X As Long, ByVal Y As Long)

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

Button   The mouse button that was released. Can be one of the following XlMouseButton constants: xlNoButton, xlPrimaryButton, xlSecondaryButton, or xlMiddleButton.

Shift   The state of the SHIFT, CTRL, and ALT keys when the event occurred. Can be one of or a sum of the following values.

Value Meaning
0 (zero) No keys
1 SHIFT key
2 CTRL key
4 ALT key

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.