AddVariable Method

Adds a new user-defined variable to the variable collection of the shape. Returns a Variable object that corresponds to the added variable.

Applies to: Shape object

Syntax

[[Set] variableRet =] object.AddVariable ()

The AddVariable method syntax has these parts:

Part Description
object

Required. An expression that returns a Shape.

variableRet Optional. A Variable type variable.

Remarks

If the new variable couldn't be added to the collection, the method returns Nothing.

 

See Also

Variable method, VariablesNum method, RemoveVariable method, Variable object