Application.GanttBarLinks method (Project)

Shows or hides task links on the Gantt Chart.

Syntax

expression. GanttBarLinks( _Display_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
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.

Return value

Boolean

Example

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.