Name related procedures in class ProtectedViewWindow (Word VBA)

This page presents procedures from class ProtectedViewWindow related to the theme Name: Caption and SourceName

Caption

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

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

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

SourceName

Returns the name of the source file for the specified Protected View window.

This property does not return the path for the source file.

MsgBox ActiveProtectedViewWindow.SourcePath & "\" _ 
 & ActiveProtectedViewWindow.SourceName