PowerPoint) (Presentations.Count 属性

返回指定集合中的对象数。 只读。

语法

表达式计数

表达 一个代表 Presentations 对象的变量。

返回值

长型

示例

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

With Application.Windows

    For i = 2 To .Count

        .Item(2).Close

    Next

End With

另请参阅

演示文稿对象

支持和反馈

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