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