ActiveProtectedViewWindow 属性 (Excel)Application.ActiveProtectedViewWindow property (Excel)

返回一个 ProtectedViewWindow 对象,该对象表示活动的 受保护的视图窗口 (最上面的窗口)。Returns a ProtectedViewWindow object that represents the active Protected View window (the window on top). 如果没有“受保护的视图”窗口打开,那么返回 NothingReturns Nothing if there are no Protected View windows open. 此为只读属性。Read-only.

语法Syntax

表达式ActiveProtectedViewWindowexpression.ActiveProtectedViewWindow

expression:表示 Application 对象的变量。expression A variable that represents an Application object.

示例Example

下面的代码示例显示活动的受保护的视图窗口的名称 (Caption属性)。The following code example displays the name (Caption property) of the active Protected View window.

MsgBox "The name of the active Protected View window is " & ActiveProtectedWindow.Caption

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.