Application.RemoveTimelineBar method (Project)

Removes a Timeline bar from the view. Introduced in Office 2016.

Syntax

expression.RemoveTimelineBar ( BarPosition, TimelineViewName)

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
BarPosition Optional Integer Indicates the timeline bar to remove. If a number isn't specified, the selected bar is removed if applicable. The top bar is 0 and the next is 1, and so on. If a number is not specified, the selected bar is removed if one is selected. The last timeline bar cannot be removed.
TimelineViewName Optional String Specifies the name of a timeline. 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.