Share via


ProtectedViewWindow.WindowState Property (Excel)

Returns or sets the state of the specified Protected View window. Read/write

Version Information

Version Added: Excel 2010

Syntax

expression .WindowState

expression A variable that represents a ProtectedViewWindow object.

Return Value

XlProtectedViewWindowState

Example

The following code example maximizes the active Protected View window.

ActiveProtectedViewWindow.WindowState = xlProtectedViewWindowMaximized 

See Also

Concepts

ProtectedViewWindow Object Members

ProtectedViewWindow Object