Task.SplitParts 属性 (Project)
获取表示拆分任务的一部分的 SplitParts 集合。 只读的 SplitParts 。
语法
expression。 SplitParts
表达 一个代表 Task 对象的变量。
示例
以下示例返回活动项目中每个任务的部分数。
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
支持和反馈
有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。
反馈
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:提交和查看相关反馈