Skip to main content

ProtectedViewWindow.WindowState property

Table of contents
  1. Syntax
  2. Return value
  3. Example

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

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

Leave a comment

Your email address will not be published. Required fields are marked *

Format your code: <pre><code class="language-vba">place your code here</code></pre>