Application.ProtectedViewWindows Property (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Returns a ProtectedViewWindows collection that represents all protected view windows. Read-only.

expression .ProtectedViewWindows

expression An expression that returns an Application object.

The following code example displays the number of protected view windows that are open.

MsgBox "There are " & ProtectedViewWindows.Count & _ 
 " protected view windows open."
Show: