Occurs when any open workbook is deactivated.
Syntax
Private Sub object_WorkbookDeactivate(ByVal Wb As 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.