应用于 Application 对象的 Windows 属性。
返回一个代表所有打开的文档窗口的 DocumentWindows 集合。只读。
应用于 Presentation 对象的 Windows 属性。
返回一个代表所有与指定演示文稿相关联的文档窗口的 DocumentWindows 集合。该属性不能用于返回与该演示文稿相关联的任何幻灯片放映窗口。只读。
有关返回集合中单个元素的详细信息,请参阅返回集合中的对象。
本示例关闭除当前窗口外的所有窗口。
With Application.Windows
For i = .Count To 2 Step -1
.Item(i).Close
Next
End With