ProtectedViewWindow Object (Word)

Represents a protected view window.

Version Information

Version Added: Word 2010

Remarks

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.

Example

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) 

See Also

Concepts

Word Object Model Reference

ProtectedViewWindow Object Members