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

Task.SplitParts Property (Project)

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

Gets a SplitParts collection that represents the portions of a split task. Read-only SplitParts.

Syntax

expression. SplitParts

expression A variable that represents a Task object.

Example

The following example returns the number of parts for each task in the active project.

Sub CountTaskPortions() 
 Dim T As Task, HowMany As Long 

 For Each T In ActiveProject.Tasks 
 HowMany = 0 
 If Not (T Is Nothing) Then 
 HowMany = HowMany + T.SplitParts.Count 
 MsgBox T.Name &; ": " &; HowMany &; " task portion(s)" 
 End If 

 Next T 

End Sub
© 2018 Microsoft