title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.GanttBarLinks method (Project) |
vbapj.chm2071 |
|
project-server |
|
80f8fdaa-e08f-3c5e-64dc-43d3dccd7f86 |
06/08/2017 |
medium |
Shows or hides task links on the Gantt Chart.
expression. GanttBarLinks
( _Display_
)
expression A variable that represents an Application object.
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. |
Boolean
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
[!includeSupport and feedback]