Share via


Chart.Deactivate Event

Excel Developer Reference

Occurs when the chart, worksheet, or workbook is deactivated.

Syntax

expression.Deactivate

expression   A variable that represents a Chart object.

Example

This example arranges all open windows when the workbook is deactivated.

Visual Basic for Applications
  Private Sub Workbook_Deactivate()
    Application.Windows.Arrange xlArrangeStyleTiled
End Sub

See Also