Task Object (Project)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

Represents a task. The Task object is a member of the Tasks collection.

Using the Task Object

Use Tasks(Index), where Index is the task index number or task name, to return a single Task object. The following example prints the name of every resource assigned to every task in the active project.

Using the Tasks Collection

Use the Tasks property to return a Tasks collection. The following example displays the name of every task in the selection.

Use the Add method to add a Task object to the Tasks collection. The following example adds a new task to the end of the task list.

Name

Active

ActualCost

ActualDuration

ActualFinish

ActualOvertimeCost

ActualOvertimeWork

ActualStart

ActualWork

ACWP

Application

Assignments

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

Calendar

CalendarGuid

CalendarObject

Confirmed

ConstraintDate

ConstraintType

Contact

Cost

Cost1

Cost10

Cost2

Cost3

Cost4

Cost5

Cost6

Cost7

Cost8

Cost9

CostVariance

CPI

Created

Critical

CV

CVPercent

Date1

Date10

Date2

Date3

Date4

Date5

Date6

Date7

Date8

Date9

Deadline

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

Estimated

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

Index

IsDurationValid

IsFinishValid

IsPublished

IsStartValid

LateFinish

LateStart

LevelIndividualAssignments

LevelingCanSplit

LevelingDelay

LinkedFields

Manual

Marked

Milestone

Name

Notes

Number1

Number10

Number11

Number12

Number13

Number14

Number15

Number16

Number17

Number18

Number19

Number2

Number20

Number3

Number4

Number5

Number6

Number7

Number8

Number9

Objects

OutlineChildren

OutlineCode1

OutlineCode10

OutlineCode2

OutlineCode3

OutlineCode4

OutlineCode5

OutlineCode6

OutlineCode7

OutlineCode8

OutlineCode9

OutlineLevel

OutlineNumber

OutlineParent

Overallocated

OvertimeCost

OvertimeWork

Parent

PathDrivenSuccessor

PathDrivingPredecessor

PathPredecessor

PathSuccessor

PercentComplete

PercentWorkComplete

PhysicalPercentComplete

Placeholder

Predecessors

PredecessorTasks

PreleveledFinish

PreleveledStart

Priority

Project

RecalcFlags

Recurring

RegularWork

RemainingCost

RemainingDuration

RemainingOvertimeCost

RemainingOvertimeWork

RemainingWork

ResourceGroup

ResourceInitials

ResourceNames

ResourcePhonetics

Resources

ResponsePending

Resume

Rollup

ScheduledDuration

ScheduledFinish

ScheduledStart

SPI

SplitParts

Start

Start1

Start10

Start2

Start3

Start4

Start5

Start6

Start7

Start8

Start9

StartDriver

StartSlack

StartText

StartVariance

Status

StatusManagerName

Stop

Subproject

SubProjectReadOnly

Successors

SuccessorTasks

Summary

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

Type

UniqueID

UniqueIDPredecessors

UniqueIDSuccessors

UpdateNeeded

VAC

Warning

WBS

WBSPredecessors

WBSSuccessors

Work

WorkVariance

Compliant

Show: