다음을 통해 공유


Workbook.Deactivate Event (Excel)

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

Syntax

.Deactivate

A variable that represents a Workbook object.

Return Value

nothing

Example

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

Private Sub Workbook_Deactivate() 
 Application.Windows.Arrange xlArrangeStyleTiled 
End Sub

참고 항목

개념

Workbook Object

Workbook Object Members