Returns a Variable object that corresponds to a user-defined variable with the specified index in the user-defined variable collection of the shape.
Applies to: Shape object
[[Set] variableRet = ] object.Variable ( index ) |
The Variable method syntax has these parts:
Part | Description |
object | Required. An expression that returns a Shape object. |
index | Required. An expression that returns a Long value. The index of the variable in the variable collection of the shape. |
variableRet | Optional. A Variable type variable. |
If index is less than 1 or greater than the number of user-defined variables in the variable collection of the shape, the Variable method returns Nothing. Use the VariablesNum method find out the number of variables in the shape.
See Also |
AddVariable method, VariablesNum method, RemoveVariable method, Variable object |