ProtectedViewWindow.Caption property (Word)

Returns or sets the caption text that is displayed in the title bar of the document or Protected View window. Read/write String.



expression An expression that returns a 'ProtectedViewWindow' object.


To change the caption of the Protected View window to the default text, set this property to an empty string ("").


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

MsgBox "The caption for the active protected " & _ 
 "view window is: " & ActiveProtectedViewWindow.Caption 

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

ActiveProtectedViewWindow.Caption = Application.UserName & "'s copy of Word" 

See also

ProtectedViewWindow 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.