ProtectedViewWindow.SourcePath Property
Gets the path of the source file that is open in the specified Protected View window.
Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)
Syntax
'Declaration
ReadOnly Property SourcePath As String
Get
'Usage
Dim instance As ProtectedViewWindow
Dim value As String
value = instance.SourcePath
string SourcePath { get; }
Property Value
Type: System.String
The path of the source file that is open in the specified Protected View window.
Remarks
Read-only.
The path does not include a trailing character (for example, "C:\MSOffice"). Use the PathSeparator property to add the character that separates folders and drive letters. Use the SourceName of the ProtectedViewWindow object to return the source file name without the path.