title | ms.service | ms.assetid | ms.date | ms.localizationpriority |
---|---|---|---|---|
Shapes.Value property (Project) |
project-server |
f10fef14-baee-ddd3-fb39-81fef0bc132d |
06/08/2017 |
medium |
Gets an individual Shape object in the Shapes collection. Read-only Shape.
expression.Value
expression A variable that represents a Shapes object.
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. |
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
SHAPE
[!includeSupport and feedback]