Share via


ProtectedViewWindow.SourceName Property (Word)

Returns the name of the source file for the specified protected view window. Read-only String.

Version Information

Version Added: Word 2010

Syntax

expression .SourceName

expression An expression that returns a ProtectedViewWindow object.

Remarks

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

Example

The following code example returns the path and name of the document associated with the specified protected view window.

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

See Also

Concepts

ProtectedViewWindow Object Members

ProtectedViewWindow Object