title | keywords | f1_keywords | ms.service | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|---|
Application.OutlineShowTasks method (Project) |
vbapj.chm27 |
|
project-server |
|
614eb1fc-93eb-3df2-ae52-4fad98c80b3b |
06/08/2017 |
medium |
Expands an outline to show all tasks up to the specified level and collapses any levels below.
expression. OutlineShowTasks
( _OutlineNumber_
, _ExpandInsertedProjects_
)
expression A variable that represents an Application object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
OutlineNumber | Optional | Long | The 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. |
ExpandInsertedProjects | Optional | Boolean | True if tasks from subprojects are affected by the value specified with OutlineNumber. The default value is False. |
Boolean
This example has the same effect as collapsing the entire outline, including any tasks from subprojects.
Sub CollapseOutline()
Application.OutlineShowTasks pjTaskOutlineShowLevel1, True
End Sub
[!includeSupport and feedback]