共用方式為


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 

請參閱

概念

ProtectedViewWindow Object Members

ProtectedViewWindow Object