title | keywords | f1_keywords | ms.service | ms.assetid | ms.date | ms.localizationpriority | |
---|---|---|---|---|---|---|---|
Application.HighlightPredecessors method (Project) |
vbapj.chm147 |
|
project-server |
e4c51516-2e5d-3ef9-3165-84fe6f9ad38b |
06/08/2017 |
medium |
Sets or clears task predecessor highlighting for the task path feature.
expression. HighlightPredecessors
(Set)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Set | Optional | Variant | True to set task predecessor highlighting; False to clear the task predecessor highlighting. |
Set | Optional | Variant | |
Name | Required/Optional | Data type | Description |
Boolean
The HighlightPredecessors method corresponds to the Predecessors item in the Task Path drop-down list, on the FORMAT tab, under GANTT CHART TOOLS on the ribbon.
Create a project where task 2 is a predecessor of task 3, and then run the following statements in the Immediate window of the VBE. The PathPredecessor statement prints True.
Application.SelectRow Row:=2, RowRelative:=False
Application.HighlightPredecessors True
? ActiveProject.Tasks(3).PathPredecessor
[!includeSupport and feedback]