Application.CustomFieldSetFormula Method (Project)

Specifies a formula to use when assigning a value to a custom field.

Syntax

expression .CustomFieldSetFormula(FieldID, Formula)

expression A variable that represents an Application object.

Parameters

Name

Required/Optional

Data Type

Description

FieldID

Required

Long

The custom field. Can be one of the PjCustomField constants.

Formula

Optional

String

The formula to use to assign a value for the custom field. The value specified with Formula functions as the right side of an equation that the field specified with FieldID should equal. To specify a field as part of the formula, enclose the field name in brackets, as in "[Actual Cost] * 2". If a macro will be run in more than one language, any field specified in Formula must use the name localized for each language.

Return Value

Boolean