I need to catch event in Excel VBA when I click on the chart.
I want to bring the chart to the front, when it is activated, but I can\'t find an appropriate event.>
Real easy. Put this VBA procedure into a regular code module:
Sub ClickChart()
ActiveSheet.ChartObjects(Application.Caller).BringToFront
End Sub
Assign the macro ClickChart
to all charts you want to have this behavior.
When you click any of the charts, it gets moved in front of all others on the sheet.
After posting, I see that @timwilliams has suggested this in a comment to another answer.