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

Application.OutlineShowTasks Method (Project)

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

Expands an outline to show all tasks up to the specified level and collapses any levels below.

Syntax

expression. OutlineShowTasks( ** OutlineNumber, ** ExpandInsertedProjects )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
OutlineNumberOptionalLongThe outline level to display. Higher outline levels are expanded to show this level. The level specified with OutlineNumber and lower (if any) are collapsed. Can be one of the PjTaskOutlineShowLevel constants.
ExpandInsertedProjectsOptionalBooleanTrue if tasks from subprojects are affected by the value specified with OutlineNumber. The default value is False.

Return Value

Boolean

Example

This example has the same effect as collapsing the entire outline, including any tasks from subprojects.

Sub CollapseOutline() 
 Application.OutlineShowTasks pjTaskOutlineShowLevel1, True 
End Sub
© 2018 Microsoft