Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.GanttBarLinks Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Shows or hides task links on the Gantt Chart.

Syntax

expression. GanttBarLinks( ** Display** )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
DisplayOptionalLongWhere 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
© 2018 Microsoft