WorkbookDeactivate Event [Excel 2003 VBA Language Reference]
Occurs when any open workbook is deactivated.
Private Subobject**_WorkbookDeactivate(ByValWbAs Workbook)**
object An object of type Application declared with events in a class module. For more information, see Using Events with the Application Object .
Wb The workbook.
Example
This example arranges all open windows when a workbook is deactivated.
Private Sub App_WorkbookDeactivate(ByVal Wb As Workbook)
Application.Windows.Arrange xlArrangeStyleTiled
End Sub
Applies to | Application Object
See Also | Activate Method | Deactivate Event | SheetActivate Event | SheetDeactivate Event | WindowActivate Event | WindowDeactivate Event | WorkbookActivate Event