使用英语阅读

通过


Task 对象 (Project)

代表一个任务。 任务 对象是 任务 集合的一个成员。 使用任务对象 使用 Tasks (索引) (其中 index 是任务索引号或任务名称)返回单个 Task 对象。 下面的示例打印分配给活动项目中每个任务的资源的名称。 使用 Tasks 集合 使用 Tasks 属性可返回 Tasks 集合。 下面的示例显示选定内容中的每个任务的名称。 使用 Add 方法可以将一个 Task 对象添加到 Tasks 集合中。 以下示例将一个新任务添加到任务列表的末尾。

方法

属性

名称
Active
ActualCost
ActualDuration
ActualFinish
ActualOvertimeCost
ActualOvertimeWork
ActualStart
ActualWork
ACWP
应用程序
作业
Baseline10BudgetCost
Baseline10BudgetWork
Baseline10Cost
Baseline10DeliverableFinish
Baseline10DeliverableStart
Baseline10Duration
Baseline10DurationEstimated
Baseline10DurationText
Baseline10Finish
Baseline10FinishText
Baseline10FixedCost
Baseline10FixedCostAccrual
Baseline10Start
Baseline10StartText
Baseline10Work
Baseline1BudgetCost
Baseline1BudgetWork
Baseline1Cost
Baseline1DeliverableFinish
Baseline1DeliverableStart
Baseline1Duration
Baseline1DurationEstimated
Baseline1DurationText
Baseline1Finish
Baseline1FinishText
Baseline1FixedCost
Baseline1FixedCostAccrual
Baseline1Start
Baseline1StartText
Baseline1Work
Baseline2BudgetCost
Baseline2BudgetWork
Baseline2Cost
Baseline2DeliverableFinish
Baseline2DeliverableStart
Baseline2Duration
Baseline2DurationEstimated
Baseline2DurationText
Baseline2Finish
Baseline2FinishText
Baseline2FixedCost
Baseline2FixedCostAccrual
Baseline2Start
Baseline2StartText
Baseline2Work
Baseline3BudgetCost
Baseline3BudgetWork
Baseline3Cost
Baseline3DeliverableFinish
Baseline3DeliverableStart
Baseline3Duration
Baseline3DurationEstimated
Baseline3DurationText
Baseline3Finish
Baseline3FinishText
Baseline3FixedCost
Baseline3FixedCostAccrual
Baseline3Start
Baseline3StartText
Baseline3Work
Baseline4BudgetCost
Baseline4BudgetWork
Baseline4Cost
Baseline4DeliverableFinish
Baseline4DeliverableStart
Baseline4Duration
Baseline4DurationEstimated
Baseline4DurationText
Baseline4Finish
Baseline4FinishText
Baseline4FixedCost
Baseline4FixedCostAccrual
Baseline4Start
Baseline4StartText
Baseline4Work
Baseline5BudgetCost
Baseline5BudgetWork
Baseline5Cost
Baseline5DeliverableFinish
Baseline5DeliverableStart
Baseline5Duration
Baseline5DurationEstimated
Baseline5DurationText
Baseline5Finish
Baseline5FinishText
Baseline5FixedCost
Baseline5FixedCostAccrual
Baseline5Start
Baseline5StartText
Baseline5Work
Baseline6BudgetCost
Baseline6BudgetWork
Baseline6Cost
Baseline6DeliverableFinish
Baseline6DeliverableStart
Baseline6Duration
Baseline6DurationEstimated
Baseline6DurationText
Baseline6Finish
Baseline6FinishText
Baseline6FixedCost
Baseline6FixedCostAccrual
Baseline6Start
Baseline6StartText
Baseline6Work
Baseline7BudgetCost
Baseline7BudgetWork
Baseline7Cost
Baseline7DeliverableFinish
Baseline7DeliverableStart
Baseline7Duration
Baseline7DurationEstimated
Baseline7DurationText
Baseline7Finish
Baseline7FinishText
Baseline7FixedCost
Baseline7FixedCostAccrual
Baseline7Start
Baseline7StartText
Baseline7Work
Baseline8BudgetCost
Baseline8BudgetWork
Baseline8Cost
Baseline8DeliverableFinish
Baseline8DeliverableStart
Baseline8Duration
Baseline8DurationEstimated
Baseline8DurationText
Baseline8Finish
Baseline8FinishText
Baseline8FixedCost
Baseline8FixedCostAccrual
Baseline8Start
Baseline8StartText
Baseline8Work
Baseline9BudgetCost
Baseline9BudgetWork
Baseline9Cost
Baseline9DeliverableFinish
Baseline9DeliverableStart
Baseline9Duration
Baseline9DurationEstimated
Baseline9DurationText
Baseline9Finish
Baseline9FinishText
Baseline9FixedCost
Baseline9FixedCostAccrual
Baseline9Start
Baseline9StartText
Baseline9Work
BaselineBudgetCost
BaselineBudgetWork
BaselineCost
BaselineDeliverableFinish
BaselineDeliverableStart
BaselineDuration
BaselineDurationEstimated
BaselineDurationText
BaselineFinish
BaselineFinishText
BaselineFixedCost
BaselineFixedCostAccrual
BaselineStart
BaselineStartText
BaselineWork
BCWP
BCWS
BudgetCost
BudgetWork
日历
CalendarGuid
CalendarObject
确认
ConstraintDate
ConstraintType
联系人
成本
Cost1
Cost10
Cost2
Cost3
Cost4
Cost5
Cost6
Cost7
Cost8
Cost9
CostVariance
CPI
已创建
关键
CV
CVPercent
Date1
Date10
Date2
Date3
Date4
Date5
Date6
Date7
Date8
Date9
截止日期
DeliverableFinish
DeliverableGuid
DeliverableName
DeliverableStart
DeliverableType
Duration
Duration1
Duration10
Duration10Estimated
Duration1Estimated
Duration2
Duration2Estimated
Duration3
Duration3Estimated
Duration4
Duration4Estimated
Duration5
Duration5Estimated
Duration6
Duration6Estimated
Duration7
Duration7Estimated
Duration8
Duration8Estimated
Duration9
Duration9Estimated
DurationText
DurationVariance
EAC
EarlyFinish
EarlyStart
EarnedValueMethod
EffortDriven
ErrorMessage
估计
ExternalTask
Finish
Finish1
Finish10
Finish2
Finish3
Finish4
Finish5
Finish6
Finish7
Finish8
Finish9
FinishSlack
FinishText
FinishVariance
FixedCost
FixedCostAccrual
Flag1
Flag10
Flag11
Flag12
Flag13
Flag14
Flag15
Flag16
Flag17
Flag18
Flag19
Flag2
Flag20
Flag3
Flag4
Flag5
Flag6
Flag7
Flag8
Flag9
FreeSlack
GroupBySummary
Guid
HideBar
Hyperlink
HyperlinkAddress
HyperlinkHREF
HyperlinkScreenTip
HyperlinkSubAddress
ID
IgnoreResourceCalendar
IgnoreWarnings
索引
IsDurationValid
IsFinishValid
IsPublished
IsStartValid
LateFinish
LateStart
LevelIndividualAssignments
LevelingCanSplit
LevelingDelay
LinkedFields
手动
标记为
里程碑
名称
备注
Number1
Number10
Number11
Number12
Number13
Number14
Number15
Number16
Number17
Number18
Number19
Number2
Number20
Number3
Number4
Number5
Number6
Number7
Number8
Number9
对象
OutlineChildren
OutlineCode1
OutlineCode10
OutlineCode2
OutlineCode3
OutlineCode4
OutlineCode5
OutlineCode6
OutlineCode7
OutlineCode8
OutlineCode9
OutlineLevel
OutlineNumber
OutlineParent
过度分配
OvertimeCost
OvertimeWork
Parent
PathDrivenSuccessor
PathDrivingPredecessor
PathPredecessor
PathSuccessor
PercentComplete
PercentWorkComplete
PhysicalPercentComplete
占位符
前置任务
PredecessorTasks
PreleveledFinish
PreleveledStart
优先级
项目
RecalcFlags
定期
RegularWork
RemainingCost
RemainingDuration
RemainingOvertimeCost
RemainingOvertimeWork
RemainingWork
ResourceGroup
ResourceInitials
ResourceNames
ResourcePhonetics
资源
ResponsePending
简历
汇总
ScheduledDuration
ScheduledFinish
ScheduledStart
SPI
SplitParts
Start
Start1
Start10
Start2
Start3
Start4
Start5
Start6
Start7
Start8
Start9
StartDriver
StartSlack
StartText
StartVariance
状态
StatusManagerName
停止
子项目
SubProjectReadOnly
后续任务
SuccessorTasks
摘要
SV
SVPercent
TaskDependencies
TCPI
TeamStatusPending
Text1
Text10
Text11
Text12
Text13
Text14
Text15
Text16
Text17
Text18
Text19
Text2
Text20
Text21
Text22
Text23
Text24
Text25
Text26
Text27
Text28
Text29
Text3
Text30
Text4
Text5
Text6
Text7
Text8
Text9
TotalSlack
类型
UniqueID
UniqueIDPredecessors
UniqueIDSuccessors
UpdateNeeded
VAC
警告
WBS
WBSPredecessors
WBSSuccessors
工作
WorkVariance
符合标准

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。