Skip to content

Latest commit

 

History

History
64 lines (36 loc) · 1.55 KB

Project.application.highlightpredecessors.md

File metadata and controls

64 lines (36 loc) · 1.55 KB
title keywords f1_keywords ms.service ms.assetid ms.date ms.localizationpriority
Application.HighlightPredecessors method (Project)
vbapj.chm147
vbapj.chm147
project-server
e4c51516-2e5d-3ef9-3165-84fe6f9ad38b
06/08/2017
medium

Application.HighlightPredecessors method (Project)

Sets or clears task predecessor highlighting for the task path feature.

Syntax

expression. HighlightPredecessors (Set)

expression A variable that represents an Application object.

Parameters

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

Return value

Boolean

Remarks

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.

Example

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

See also

Application Object

Task.PathPredecessor Property

[!includeSupport and feedback]