Skip to content

Latest commit

 

History

History
48 lines (27 loc) · 1.09 KB

Excel.ProtectedViewWindow.SourceName.md

File metadata and controls

48 lines (27 loc) · 1.09 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
ProtectedViewWindow.SourceName property (Excel)
vbaxl10.chm914081
vbaxl10.chm914081
Excel.ProtectedViewWindow.SourceName
e5347e6e-b9d4-d3b1-ca41-ba577d836e31
05/09/2019
medium

ProtectedViewWindow.SourceName property (Excel)

Returns the name of the source file that is open in the specified Protected View window. Read-only.

Syntax

expression.SourceName

expression A variable that represents a ProtectedViewWindow object.

Return value

String

Remarks

This property does not return the path for the source file. To return the path, use the SourcePath property of the ProtectedViewWindow object.

Example

The following example returns the path and name of the workbook associated with the specified Protected View window.

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

[!includeSupport and feedback]