Count Property

Applies To

ActionSettings collection object, AddIns collection object, Adjustments object, ColorScheme object, ColorSchemes collection object, DocumentWindows collection object, ExtraColors object, Fonts collection object, GroupShapes collection object, HyperLinks collection object, NamedSlideShow object, NamedSlideShows collection object, ObjectVerbs object, Placeholders collection object, Presentations collection object, PrintRanges collection object, RulerLevels collection object, ShapeNodes collection object, ShapeRange collection object, Shapes collection object, SlideRange collection object, Slides collection object, SlideShowWindows collection object, TabStops collection object, Tags object, TextRange object, TextStyleLevels collection object, TextStyles collection object.

Description

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

Example

This example closes all windows except the active window.

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