Skip to content

Latest commit

 

History

History
54 lines (30 loc) · 805 Bytes

PowerPoint.Shapes.Count.md

File metadata and controls

54 lines (30 loc) · 805 Bytes
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
Shapes.Count property (PowerPoint)
vbapp10.chm543002
vbapp10.chm543002
PowerPoint.Shapes.Count
bc313541-1e87-cc85-e489-80d53f18abe5
06/08/2017
medium

Shapes.Count property (PowerPoint)

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

Syntax

expression.Count

expression A variable that represents a Shapes object.

Return value

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

See also

Shapes Object

[!includeSupport and feedback]