A
Andy
If I have a dynamic connector on a diagram and drop a shape with a
connection point onto this connector, the connector connects to the shape.
If I do exactly the same thing using VBA. the connector does not connect
to the shape. I have to manually move the shape a fraction.
In my instance I am replacing an existing shape with a new shape, so I
now drop the new shape on top the old shape and using the connection
information from the old shape, glue the connector to the new shape.
This works perfectly about 99% of the time, but just occasionally the
connector gets routed all over the diagram.
This is the code I have to transfer the connections from the existing
shape to the new shape.
For intConnects = vsoShape.FromConnects.Count To 1 Step -1
Set fromCell = vsoShape.FromConnects(intConnects).fromCell
Set toCell =
dropShape.Cells(vsoShape.FromConnects(intConnects).toCell.name)
fromCell.GlueTo toCell
Next
Any suggestions as to how I can handle this reliably.
Thanks
connection point onto this connector, the connector connects to the shape.
If I do exactly the same thing using VBA. the connector does not connect
to the shape. I have to manually move the shape a fraction.
In my instance I am replacing an existing shape with a new shape, so I
now drop the new shape on top the old shape and using the connection
information from the old shape, glue the connector to the new shape.
This works perfectly about 99% of the time, but just occasionally the
connector gets routed all over the diagram.
This is the code I have to transfer the connections from the existing
shape to the new shape.
For intConnects = vsoShape.FromConnects.Count To 1 Step -1
Set fromCell = vsoShape.FromConnects(intConnects).fromCell
Set toCell =
dropShape.Cells(vsoShape.FromConnects(intConnects).toCell.name)
fromCell.GlueTo toCell
Next
Any suggestions as to how I can handle this reliably.
Thanks