_Application.ActiveProtectedViewWindow property

Office 2013 and later

Gets a ProtectedViewWindow object that represents the active Protected View window (the window on top).

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

ProtectedViewWindow ActiveProtectedViewWindow { get; }

Property value

Type: Microsoft.Office.Interop.Excel.ProtectedViewWindow
A ProtectedViewWindow object that represents the active Protected View window (the window on top).

Returns a null reference (Nothing in Visual Basic) if there are no Protected View windows open. Read-only.

Show: