Skip to content

Latest commit

 

History

History
48 lines (30 loc) · 1.04 KB

Project.Project.OutlineChildren.md

File metadata and controls

48 lines (30 loc) · 1.04 KB
title ms.service api_name ms.assetid ms.date ms.localizationpriority
Project.OutlineChildren property (Project)
project-server
Project.Project.OutlineChildren
f0feaf89-04ad-4523-7b15-eff6573f6ddd
06/08/2017
medium

Project.OutlineChildren property (Project)

Gets a Tasks collection representing the children of a task in the outline structure. Read-only Tasks.

Syntax

expression. OutlineChildren

expression A variable that represents a Project object.

Example

The following example displays the names of all tasks at the same outline level as the selected task.

Sub Siblings() 
 
 Dim MyParent As Task 
 Dim Sibling As Task 
 Dim Temp As String 
 
 Set MyParent = ActiveCell.Task.OutlineParent 
 
 For Each Sibling In MyParent.OutlineChildren 
 Temp = Sibling.Name & ListSeparator & " " & Temp 
 Next Sibling 
 
 Temp = Left$(Temp, Len(Temp) - Len(ListSeparator & " ")) 
 MsgBox Temp 
 
End Sub

[!includeSupport and feedback]