Greetings loungers
I am attempting to trace a series of connected shapes.
Using the connector property and connectorFormat enables this.
The problem is that it seems the connector shapes are evaluated in their creation order.
I would prefer to establish recursively
if a shape has an attached connector (and the number of connectors)
… then if so establish the end point of that connector and grab the text
loop
IT is almost as if there is a need for an “IsConnected” function.
Thanks
Geof
Sub ConnectionEnd()
For Each oShp In ActiveSheet.Shapes
If oShp.Connector Then
With oShp.ConnectorFormat
If .EndConnected Then
Set endshape = .EndConnectedShape
endshape.Select
MsgBox (Selection.Name)
End If
End With
End If
Next
End Sub