Expand Minimize

Application.TimelineShowHide Method (Project)

Shows or hides the specified feature in the Timeline view.

Version Added: Project 2010

expression .TimelineShowHide(Item, Show)

expression An expression that returns an Application object.

Parameters

Name

Required/Optional

Data Type

Description

Item

Required

PjTimelineShowHide

Specifies the feature to show or hide. Can be one of the PjTimelineShowHide constants.

Show

Optional

Boolean

False if the feature is hidden; otherwise, True. The default value is True, which shows the feature.

Return Value

Boolean

The TimelineShowHide method corresponds to several commands in the Show/Hide group on the Format tab on the Ribbon. The Format tab displays the Show/Hide group when the Timeline view is selected. If the Timeline view is not selected, the TimelineShowHide method results in error 1100, "The method is not available in this situation."

The following statement hides the time scale on the timeline.

Application.TimelineShowHide Item:=pjTimelineShowHideTimescale, Show:=False
Show:
© 2015 Microsoft