Resource.AccrueAt Property

Project Developer Reference

Returns or sets when a task accrues the cost of a resource. Read/write Variant.

Syntax

expression.AccrueAt

expression   A variable that represents a Resource object.

Remarks

Constant Description
pjStart Task accrues the cost of the resource when the task starts
pjProrated Task accrues the cost of the resource as the task progresses
pjEnd Task accrues the cost of the resource when the task ends

Example

The following example sets the AccrueAt property to pjProrated for each resource in the active project.

Visual Basic for Applications
  Sub SetProratedAccrueAt()
Dim R As Resource   ' Resource object used in For Each loop

' Cause tasks to accrue the cost of resources during the task.
For Each R In ActiveProject.Resources
    R.<strong>AccrueAt</strong> = pjProrated
Next R

End Sub

See Also