Detecting connection events?

C

ClaireS

Hi,

Does anyone know how to detect when a connector has been glued to another
shape?

Thanks,
Claire
 
A

Al Edlund

You might try something like this,
Al

Private WithEvents pagObj As Visio.Page

Private Sub pagObj_ConnectionsAdded(ByVal Connects As Visio.IVConnects)

Dim iConCt As Integer
Dim vsoShape As Visio.Shape

' Iterate through the connects collection passed to us
For iConCt = 1 To Connects.Count
' Do something with the info
With Connects(iConCt)
' get the name of the shape
Set vsoShape = Connects(iConCt).FromCell.Shape

End With
' MsgBox "connector added"
Next
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top