Application.TimelineTextOnBar method (Project)

Changes the format of text to display as a callout or within the Timeline bar, for one or more selected tasks.

Syntax

expression. TimelineTextOnBar( _TextOnBar_ )

expression An expression that returns an Application object.

Parameters

Name Required/Optional Data type Description
TextOnBar Optional Boolean False if the selected tasks should be displayed as callouts; otherwise, True. The default value is True, which makes the task text show within the Timeline bar.

Return value

Boolean

Remarks

The TimelineTextOnBar method is equivalent to the Display as Bar and Display as Callout commands in the Current Selection group on the Format tab on the ribbon.

Example

The following statement changes selected tasks on the Timeline bar to display as callouts.

TimelineTextOnBar TextOnBar:=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.