Chart Deactivate Event



Syntax
Private Sub Chart_Deactivate()
Enter Code
End Sub

This event will run code when a chart is deactivated.

Example
Private Sub Chart_Deactivate()
Chart.Visible = xlSheetHidden
End Sub

Result
This example will hide the chart when it is deactivated.