Skip to content

Latest commit

 

History

History
67 lines (35 loc) · 1.45 KB

Project.shapes.value.md

File metadata and controls

67 lines (35 loc) · 1.45 KB
title ms.service ms.assetid ms.date ms.localizationpriority
Shapes.Value property (Project)
project-server
f10fef14-baee-ddd3-fb39-81fef0bc132d
06/08/2017
medium

Shapes.Value property (Project)

Gets an individual Shape object in the Shapes collection. Read-only Shape.

Syntax

expression.Value

expression A variable that represents a Shapes object.

Parameters

Name Required/Optional Data type Description
Index Required Variant Can be a String value for the name of the shape or a Long value for the ordinal index number of the shape.

Remarks

Value is the default property for the Shapes object. For example, create a report namedTable Tests that contains a table. The following statement in the Immediate window of the VBE prints the name of the table.

? ActiveProject.Reports("Table Tests").Shapes.Value(1).Name

If you leave off the Shapes property, the following statement is effectively the same as the previous statement.

? ActiveProject.Reports("Table Tests").Shapes(1).Name

Shapes.Item acts like Shapes.Value, except Item is a method:

? ActiveProject.Reports("Table Tests").Shapes.Item(1).Name

Property value

SHAPE

See also

Shapes Object Item Method

[!includeSupport and feedback]