Syntax
Private Sub Chart_MouseUp(ByVal Button As Long, ByVal Shift As Long, ByVal x As Long, ByVal y As Long)
Enter
Code
End Sub
This event will run code when a mouse button
is released while the mouse pointer is over the chart.
Required Parameters
Button
The button parameter returns the value of the
mouse button that was released. The parameter will return one of the three
values. More information about the three values can be found at Mouse Button Values.
Shift
The shift parameter will return a value
depending on which key was pressed when the mouse button was released. The parameter can return a value for a single
key or a value that represents the sum of multiple keys that were pressed. More
information about the key values can be found at Shift Parameter Values.
X
The x parameter returns the horizontal
coordinate of where the mouse pointer was when the mouse button was released.
Y
The y parameter returns the vertical
coordinate of where the mouse pointer was when the mouse button was released.
Example
Private Sub Chart_MouseUp(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
Result
This example runs when a mouse button is released over
a chart.