Application.AddTimelineBar method (Project)

Adds a timeline bar to the view. Introduced in Office 2016.

Syntax

expression.AddTimelineBar (BarPosition, TimelineViewName)

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
BarPosition Optional Integer Indicates where to add the timeline bar. If a number isn't specified, it is added at the bottom. The top bar is 0 and the next is 1, and so on.
TimelineViewName Optional String Specifies 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.

Return value

BOOLEAN

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.