Visio Guy

Visio Discussions => Programming & Code => Topic started by: doudou on October 02, 2014, 05:48:45 PM

Title: Programmatically modify the behavior of a connector
Post by: doudou on October 02, 2014, 05:48:45 PM
Hello,

I am wondering how to modify the behavior of a connector through VBA. I am particularly interested in showing/hiding line jumps (I tried the macro recorder but that didn't work). Also when you have two 2D-shapes not at the same horizontal level, how do I change the connector so that the horizontal segments of the connector are of equal length (flowchart on the right hand side in attached snapshot). Thanks in advance

Jean
Title: Re: Programmatically modify the behavior of a connector
Post by: JuneTheSecond on October 03, 2014, 06:36:46 AM
Visio has alternative simple connector that you wish.
You can find it in a stencil in Visio Extra.
Title: Re: Programmatically modify the behavior of a connector
Post by: Paul Herber on October 03, 2014, 07:41:07 AM
Note that line jump is on a page basis, not per connector. The VBA code to set line jumps is:.

Application.ActiveWindow.Shape.CellsSRC(visSectionObject, visRowPageLayout, visPLOJumpCode).FormulaU = "1"