ProtectedViewWindows Object (Excel)

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.

A collection of the ProtectedViewWindow objects that represent all the Protected View windows that are currently open in the application.

Use the ProtectedViewWindows property to return the ProtectedViewWindows collection.

The following code example displays the number of Protected View windows that are open.

MsgBox "There are " & ProtectedViewWindows.Count & _ 
 " Protected View windows currently open."
Show: