Application.TimelineShowHide method (Project)
Shows or hides the specified feature in the Timeline view.
expression An expression that returns an Application object.
|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.|
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
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.