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

Application.HighlightDrivenSuccessors Method (Project)

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

Sets or clears task driven successor highlighting for the task path feature.

Syntax

expression. HighlightDrivenSuccessors(Set)

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
SetOptionalVariantTrue to set task driven successor highlighting; False to clear the task driven successor highlighting.
SetOptionalVARIANT
NameRequired/OptionalData typeDescription

Return value

Boolean

Remarks

The HighlightDrivenSuccessors method corresponds to the Driven Successors 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 4 is a driven successor of task 3, and then run the following statements in the Immediate window of the VBE. The PathDrivenSuccessor statement prints True.

Application.SelectRow Row:=3, RowRelative:=False 
Application.HighlightDrivenSuccessors True
? ActiveProject.Tasks(4).PathDrivenSuccessor

See also

Concepts

Application Object

Other resources

Task.PathDrivenSuccessor Property

© 2018 Microsoft