ProtectedViewWindow Object (Word)

Represents a protected view window.

Version Added: Word 2010

Documents displayed in a protected view window cannot be edited and are restricted from running active content such as Visual Basic for Applications macros and Data Connections.

Use ProtectedViewWindows(Index), where Index is the index number to return a single ProtectedViewWindow object.

The index number represents the position of the protected view window in the ProtectedViewWindows collection.. The following code example returns the first protected view window.

Dim pvWindow As ProtectedViewWindow 
Set pvWindow = ProtectedViewWindows(1)