M
Mac
Dim myConns As New Collection
Dim connxCol As Visio.Connects
Dim myConnect As connect, anotherConnect As Connect
Dim whyShape As Shape
Set connxCol = ActivePage.Connects
For Each myConnect In connxCol
myConns.Add myConnect
Next myConnect
For Each anotherConnect In myConns = HERE I GET 'Type Mismatch Error'
..
Next anotherConnect
For Each whyShape In myConns = THIS ONE LOOPS OK
..
Next whyShape
Why are Connect objects turned into Shape objects and how do I prevent this?
Dim connxCol As Visio.Connects
Dim myConnect As connect, anotherConnect As Connect
Dim whyShape As Shape
Set connxCol = ActivePage.Connects
For Each myConnect In connxCol
myConns.Add myConnect
Next myConnect
For Each anotherConnect In myConns = HERE I GET 'Type Mismatch Error'
..
Next anotherConnect
For Each whyShape In myConns = THIS ONE LOOPS OK
..
Next whyShape
Why are Connect objects turned into Shape objects and how do I prevent this?