Application.Windows 属性 (PowerPoint)

返回一个 DocumentWindows 集合,代表所有打开的文档窗口。 此为只读属性。

语法

表达式窗户

expression:表示 Application 对象的变量。

返回值

DocumentWindows

示例

以下示例关闭除当前窗口外的所有窗口。

With Application.Windows

    For i = .Count To 2 Step -1

        .Item(i).Close

    Next

End With

另请参阅

Application 对象

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。