Table of contents
Collapse the table of content
Expand the table of content

Application.TimelineFormat Method (Project)

office 365 dev account|Last Updated: 6/12/2017
1 Contributor

Formats the Timeline view to specify the number of text lines in timeline tasks and whether to show or hide details.


expression. TimelineFormat( ** NumLines, ** Minimized )

expression An expression that returns an Application object.


NameRequired/OptionalData TypeDescription
NumLinesOptionalVariantNumber of text lines to show in tasks on the timeline. Values can be 1 through 10; other values are ignored.
MinimizedOptionalBooleanIf true, minimizes the timeline so that tasks do not show details. If false, vertically expands the timeline so that tasks show detail text lines.

Return Value



The TimelineFormat method parameters correspond to the Text Lines command and the Detailed Timeline command on the Format tab for Timeline Tools in the ribbon.

If the timeline does not show tasks, the Minimized parameter has no effect. If the Timeline view is not active, the TimelineFormat method results in run-time error 1100, "Application-defined or object-defined error."


If the timeline shows one or more tasks, the following example sets four text lines in each task and expands the timeline to show all four lines.

Sub FormatTimeline() 
    TimelineFormat NumLines:=4, Minimized:=False 
End Sub
© 2018 Microsoft