Global.ActiveProtectedViewWindow property (Word)

Returns a ProtectedViewWindow object that represents the active Protected View window (the Protected View window with the focus). Read-only.

Syntax

expression. ActiveProtectedViewWindow

expression An expression that returns a Global object.

Remarks

If there are no windows open, using this property causes an error.

Example

The following code example displays the caption text for the active Protected View window.

Sub WindowCaption() 
 MsgBox ActiveProtectedViewWindow.Caption 
End Sub

See also

Global Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.