Skip to content

Latest commit

 

History

History
45 lines (26 loc) · 771 Bytes

Excel.Workbook.Deactivate.md

File metadata and controls

45 lines (26 loc) · 771 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Workbook.Deactivate event (Excel)
vbaxl10.chm503075
vbaxl10.chm503075
Excel.Workbook.Deactivate
6bd5411c-ac43-95cf-6755-49780ac765e9
05/29/2019
medium

Workbook.Deactivate event (Excel)

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

Syntax

expression.Deactivate

expression 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

[!includeSupport and feedback]