Application.GanttBarLinks method (Project)
Shows or hides task links on the Gantt Chart.
expression A variable that represents an Application object.
|Display||Optional||Long||Where links will be drawn from the ends of predecessor links. Can be one of the PjGanttBarLink constants. The default value is PjNoGanttBarLinks.|
The following example first clears the links and then displays them from the end of one task bar to the top of the next task bar.
Sub GanttBar_Links() 'First clear links, than links from end to top of the next bar 'Activate Gantt Chart view ViewApply Name:="&Gantt Chart" GanttBarLinks pjNoGanttBarLinks GanttBarLinks pjToTop End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.