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

DocumentWindows Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.