Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.