Export (0) Print
Expand All

Worksheet.Deactivate Event

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

Syntax

expression.Deactivate

expression   A variable that represents a Worksheet object.

Return Value
nothing

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



Community Additions

ADD
Show:
© 2014 Microsoft