OutlineShowTasks Method
Expands an outline to show all tasks up to the specified level and collapses any levels below.
Syntax
expression**.OutlineShowTasks(OutlineNumber, ExpandInsertedProjects)**
*expression * Optional. An expression that returns an Application object.
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 following PjTaskOutlineShowLevel constants: pjTaskOutlineShowLevel1, pjTaskOutlineShowLevel2, pjTaskOutlineShowLevel3, pjTaskOutlineShowLevel4, pjTaskOutlineShowLevel5, pjTaskOutlineShowLevel6, pjTaskOutlineShowLevel7, pjTaskOutlineShowLevel8, pjTaskOutlineShowLevel9, or pjTaskOutlineShowLevelMax. The default value is pjTaskOutlineShowLevelMax.
ExpandInsertedProjects Optional Boolean. True if tasks from subprojects are affected by the value specified with OutlineNumber. The default value is False.
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
Applies to | Application Object
See Also | CustomOutlineCodeEdit Method | OutlineShowAllTasks Method | OutlineShowSubtasks Method