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

Application.ProjectBeforeTaskChange2 Event (Project)

office 365 dev account|Last Updated: 10/19/2017
|
2 Contributors

Occurs before the user changes the value of a task field. Uses the EventInfo object parameter.

Syntax

expression. ProjectBeforeTaskChange2 (tsk, Field, NewVal, Info)

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
tskRequiredTaskThe task whose field is being changed.
FieldRequiredPjFieldThe field being changed. If more than one field is changed by the user, the event is fired for each field changed. Can be one of the PjField constants.
NewValRequiredVariantThe new value for the field specified with Field.
InfoRequiredEventInfoEventInfo.Cancel is False when the event occurs. If the event procedure sets this argument to True, the value for the field specified with Field is not changed.


PjField constants

pjTaskActualCostpjTaskHyperlinkSubAddress
pjTaskActualDurationpjTaskID
pjTaskActualFinishpjTaskIgnoreResourceCalendar
pjTaskActualOvertimeCostpjTaskIndex
pjTaskActualOvertimeWorkpjTaskIndicators
pjTaskActualOvertimeWorkProtectedpjTaskIsAssignment
pjTaskActualStartpjTaskLateFinish
pjTaskActualWorkpjTaskLateStart
pjTaskActualWorkProtectedpjTaskLevelAssignments
pjTaskACWPpjTaskLevelCanSplit
pjTaskAssignmentDelaypjTaskLevelDelay
pjTaskAssignmentUnitspjTaskLinkedFields
pjTaskBaseline1-10CostpjTaskMarked
pjTaskBaseline1-10DurationpjTaskMilestone
pjTaskBaseline1-10DurationEstimatedpjTaskName
pjTaskBaseline1-10FinishpjTaskNotes
pjTaskBaseline1-10StartpjTaskNumber1-20
pjTaskBaseline1-10WorkpjTaskObjects
pjTaskBaselineCostpjTaskOutlineCode1-10
pjTaskBaselineDurationpjTaskOutlineLevel
pjTaskBaselineDurationEstimatedpjTaskOutlineNumber
pjTaskBaselineFinishpjTaskOverallocated
pjTaskBaselineStartpjTaskOvertimeCost
pjTaskBaselineWorkpjTaskOvertimeWork
pjTaskBCWPpjTaskParentTask
pjTaskBCWSpjTaskPercentComplete
pjTaskCalendarpjTaskPercentWorkComplete
pjTaskConfirmedpjTaskPhysicalPercentComplete
pjTaskConstraintDatepjTaskPredecessors
pjTaskConstraintTypepjTaskPreleveledFinish
pjTaskContactpjTaskPreleveledStart
pjTaskCostpjTaskPriority
pjTaskCost1-10pjTaskProject
pjTaskCostRateTablepjTaskRecurring
pjTaskCostVariancepjTaskRegularWork
pjTaskCPIpjTaskRemainingCost
pjTaskCreatedpjTaskRemainingDuration
pjTaskCriticalpjTaskRemainingOvertimeCost
pjTaskCVpjTaskRemainingOvertimeWork
pjTaskCVPercentpjTaskRemainingWork
pjTaskDate1-10pjTaskResourceEnterpriseMultiValueCode20-29
pjTaskDeadlinepjTaskResourceEnterpriseOutlineCode1-29
pjTaskDelaypjTaskResourceEnterpriseRBS
pjTaskDemandedRequestpjTaskResourceGroup
pjTaskDurationpjTaskResourceInitials
pjTaskDuration1-10pjTaskResourceNames
pjTaskDuration1-10EstimatedpjTaskResourcePhonetics
pjTaskDurationVariancepjTaskResourceType
pjTaskEACpjTaskResponsePending
pjTaskEarlyFinishpjTaskResume
pjTaskEarlyStartpjTaskResumeNoEarlierThan
pjTaskEarnedValueMethodpjTaskRollup
pjTaskEffortDrivenpjTaskSheetNotes
pjTaskEnterpriseCost1-10pjTaskSPI
pjTaskEnterpriseDate1-30pjTaskStart
pjTaskEnterpriseDuration1-10pjTaskStart1-10
pjTaskEnterpriseFlag1-20pjTaskStartSlack
pjTaskEnterpriseNumber1-40pjTaskStartVariance
pjTaskEnterpriseOutlineCode1-30pjTaskStatus
pjTaskEnterpriseProjectCost1-10pjTaskStatusIndicator
pjTaskEnterpriseProjectDate1-30pjTaskStop
pjTaskEnterpriseProjectDuration1-10pjTaskSubproject
pjTaskEnterpriseProjectFlag1-20pjTaskSubprojectReadOnly
pjTaskEnterpriseProjectNumber1-40pjTaskSuccessors
pjTaskEnterpriseProjectOutlineCode1-30pjTaskSummary
pjTaskEnterpriseProjectText1-40pjTaskSV
pjTaskEnterpriseText1-40pjTaskSVPercent
pjTaskEstimatedpjTaskTCPI
pjTaskExternalTaskpjTaskTeamStatusPending
pjTaskFinishpjTaskText1-30
pjTaskFinish1-10pjTaskTotalSlack
pjTaskFinishSlackpjTaskType
pjTaskFinishVariancepjTaskUniqueID
pjTaskFixedCostpjTaskUniquePredecessors
pjTaskFixedCostAccrualpjTaskUniqueSuccessors
pjTaskFixedDurationpjTaskUpdateNeeded
pjTaskFlag1-20pjTaskVAC
pjTaskFreeSlackpjTaskWBS
pjTaskGroupBySummarypjTaskWBSPredecessors
pjTaskHideBarpjTaskWBSSuccessors
pjTaskHyperlinkpjTaskWork
pjTaskHyperlinkAddresspjTaskWorkContour
pjTaskHyperlinkHrefpjTaskWorkVariance
pjTaskHyperlinkScreenTip


Return value

Nothing

Remarks

Project events do not occur when the project is embedded in another document or application. For more information and sample code for creating and testing an event handler, see Using Events with Application and Project Objects.

The ProjectBeforeTaskChange2 event doesn't occur when timescaled data changes, when constraint data in the Task Details Form changes, when a task is split by manipulating its task bar on the Gantt Chart, when changes are made to outline level or outline number, when a baseline is saved, when a baseline is cleared, when an entire task row is pasted, during resource pool operations, when inserting or removing a subproject, or when changes have been made by using a custom form.

© 2018 Microsoft