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

Application.SetTaskFieldByID Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Sets the value of a task field specified by the field identification number.

Syntax

expression. SetTaskFieldByID( ** FieldID, ** Value, ** AllSelectedTasks, ** Create, ** TaskID, ** ProjectName )

expression An expression that returns an Application object.

Parameters

NameRequired/OptionalData TypeDescription
FieldIDRequiredPjFieldField identification number. Can be one of the task fields specified by a PjField constant or a number returned by the FieldNameToFieldConstant method.
ValueRequiredStringThe value of the task field.
AllSelectedTasksOptionalVariantTrue if the value of the field is set for all selected tasks. False if the value is set for the active task. The default value is False.
CreateOptionalVariantTrue if Project creates a task when the active cell is on an empty row. The default value is True.
TaskIDOptionalVariantThe identification number of the task containing the field to set. If AllSelectedResources is True, TaskID is ignored.
ProjectNameOptionalVariantIf the active project is a consolidated project, specifies the name of the project for the task specified by TaskID. If TaskID is not specified, ProjectName is ignored. The default value is the name of the active project.

Return Value

Boolean

Remarks

To set a task field by name, use the SetTaskField method.

© 2018 Microsoft