graphique et get chart element
Bonjour,
J'ai un graphique avec deux courbes et je voudrais qu'un ,essage d'erreur s'affiche si on clique autre part que la courbe 1.
J'ai essaye differents possibilites mais rien ne marchel:
lng_chart_index <> series_collection(1)
lng_chart_index <> 1
lng_chart_index <> xlseries1
...
Voila le code si quelau'un pouvait m'aider je l'en remercie par avance.
Code:
1 2 3 4 5 6 7 8 9 10 11
| Private Sub Chart_MouseDown(ByVal Button As Long, ByVal Shift As Long, ByVal x As Long, ByVal y As Long)
'MsgBox x
ActiveChart.GetChartElement x, y, lng_chart_index, lng_chart_arg1, lng_chart_arg2
If lng_chart_index <> series_collection(1) Then
MsgBox "Error! Please click on the observed flow data"
Else
End If
End Sub |