Поделиться через


DocumentWindows.Count Property (PowerPoint)

Returns the number of objects in the specified collection. Read-only.

Syntax

expression .Count

expression A variable that represents a DocumentWindows object.

Return Value

Long

Remarks

If your Visual Studio solution includes the Microsoft.Office.Interop.PowerPoint reference, this property maps to the following types:

  • Microsoft.Office.Interop.PowerPoint.DocumentWindows.Count

Example

This example closes all windows except the active window.

With Application.Windows 
    For i = 2 To .Count 
        .Item(2).Close 
    Next 
End With

See Also

Concepts

DocumentWindows Object Members

DocumentWindows Object