Visio VBA Macro to detect connector endpoints  
Author Message
DJ_





PostPosted: Visual Basic for Applications (VBA), Visio VBA Macro to detect connector endpoints Top

Hi guys,

My question is this, in visio vba how do you determine what shapes the connectors are pointing to I want to know the shape that is the starting point for a connector and the shape that lies at the end point of the connector.

I see that in the shapesheet you can obtain X,Y location information. However, if you were to connect at different points on a shape, that information would change and this would not be a possible solution for determine which shapes connectors are connected to. I can output the shape names like below, however I cannot determine which shapes dynamic.connector.14 (or any connectors for that matter) is connected to. I dont see any fields in the shapesheet that indicate this type of relationship between shapes and connectors, so i was wondering if you guys could help! thanks!!

Dynamic connector.14
Dynamic connector.13
Dynamic connector.12
Rectangle.11
Dynamic connector.10
Dynamic connector.9
Dynamic connector.8
Dynamic connector.7
Dynamic connector.6
Dynamic connector
Rectangle.4
Rectangle.3
Rectangle.2
Rectangle



Microsoft ISV Community Center Forums2  
 
 
DJ_





PostPosted: Visual Basic for Applications (VBA), Visio VBA Macro to detect connector endpoints Top

i think using Connects and ToSheet and FromSheet is the correct path, will let you guys know otherwise. thanks