Skip to content

Latest commit

 

History

History
59 lines (35 loc) · 1.79 KB

Project.Application.TimelineFormat.md

File metadata and controls

59 lines (35 loc) · 1.79 KB
title keywords f1_keywords ms.service api_name ms.assetid ms.date ms.localizationpriority
Application.TimelineFormat method (Project)
vbapj.chm64
vbapj.chm64
project-server
Project.Application.TimelineFormat
96f936a1-15be-8df4-4683-cd876c8a69ce
06/08/2017
medium

Application.TimelineFormat method (Project)

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

Syntax

expression. TimelineFormat( _NumLines_, _Minimized_ )

expression An expression that returns an Application object.

Parameters

Name Required/Optional Data type Description
NumLines Optional Variant Number of text lines to show in tasks on the timeline. Values can be 1 through 10; other values are ignored.
Minimized Optional Boolean If True, minimizes the timeline so that tasks don't show details. If False, vertically expands the timeline so that tasks show detail text lines.

Return value

Boolean

Remarks

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."

Example

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

[!includeSupport and feedback]