Application.ProtectedViewWindowDeactivate Event (Excel)

Occurs when a Protected View window is deactivated.

Version Information

추가된 버전: Excel 2010

Syntax

.ProtectedViewWindowDeactivate(Pvw )

A variable that represents an Application object.

Parameters

Name

Required/Optional

Data Type

Description

Pvw

필수

ProtectedViewWindow

An object that represents the deactivated Protected View window.

Return Value

Nothing

Example

The following code example minimizes any Protected View window when it is deactivated. This code must be placed in a class module and an instance of that class must be correctly initialized. For more information about how to use event procedures with the Application object, see Using Events with the Application Object.

Private Sub App_ProtectedViewWindowDeactivate(ByVal Pvw As ProtectedViewWindow) 
 Pvw.WindowState = xlProtectedViewWindowMinimized 
End Sub

참고 항목

개념

Application Object

Application Object Members