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

Application.TaskOnTimelineEx Method (Project)

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

Manages tasks on the Timeline pane or for a specified custom timeline, including specifying the bar that you want to add or remove. Introduced in Office 2016.

Syntax

expression. TaskOnTimelineEx( TaskID, TaskID, Remove, TimelineViewName, ShowDialog, BarIndex)

expression A variable that represents a Application object.

Parameters

NameRequired/OptionalData TypeDescription
TaskIDOptionalLongSpecifies the identification number of a task to add to the timeline or remove from the timeline. If TaskID is specified, selected tasks are ignored.
RemoveOptionalBooleanTrue if the task specified by TaskID or the selected tasks are removed from the timeline; otherwise, False. The default value is False.
TimelineViewNameOptionalStringSpecifies the name of a timeline to use. The name can be the built-in "Timeline" or an existing custom timeline such as "My Timeline". The default value is the name of the active timeline.
ShowDialogOptionalBooleanTrue if Project displays the Add Tasks to Timeline dialog box; otherwise, False. Any tasks that are already on the timeline have a check by their names. If ShowDialog is True, Project ignores the TaskID and Remove arguments. The default value is False.
BarIndexOptionalVariantThe bar that you want to add or remove.

Return Value

BOOL

© 2018 Microsoft