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
Example
The following code example maximizes the active Protected View window.
ActiveProtectedViewWindow.WindowState = xlProtectedViewWindowMaximized