Shape.CalloutTarget property (Visio)
Gets or sets the target shape that is associated with the callout shape by a callout relationship. Read/write.
Syntax
expression. CalloutTarget
expression A variable that represents a Shape object.
Return value
Shape
Remarks
If you attempt to get or set the CalloutTarget property value on a shape that is not a callout, Microsoft Visio will return an Inappropriate Source Object error.
If no target shape is associated with the callout shape, the CalloutTarget property returns Nothing. Setting the property value to Nothing removes any target shapes that are associated with the callout shape.
Example
The following Visual Basic for Applications (VBA) example shows how to use the CalloutTarget property to set the target shape of a callout.
Set vsoShape = vsoCalloutShape.CalloutTarget
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.