Before Excel 2010, I had no problems running VBA code such as the following:
Note: This codes is cut and paste from msdn.microsoft.com. I have right clicked on the chart tab, clicked "View Code" and pasted this code within. I then click on the chart. No message boxes pop up. I've tried mouseup, mousedown, and mousemove events. For a brief time last night, the mouseup event was working and would detect the shift, and alt key. However, it would not detect the ctrl key. But it doesn't work now.
Any advise?
Code:
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
Note: This codes is cut and paste from msdn.microsoft.com. I have right clicked on the chart tab, clicked "View Code" and pasted this code within. I then click on the chart. No message boxes pop up. I've tried mouseup, mousedown, and mousemove events. For a brief time last night, the mouseup event was working and would detect the shift, and alt key. However, it would not detect the ctrl key. But it doesn't work now.
Any advise?