Application.OptionsCalculation method (Project)

Sets calculation options.

Syntax

expression. OptionsCalculation( _Automatic_, _AutoTrack_, _SpreadPercentToStatusDate_, _SpreadCostsToStatusDate_, _AutoCalcCosts_, _FixedCostAccrual_, _CalcMultipleCriticalPaths_, _CriticalSlack_, _SetDefaults_, _CalcInsProjLikeSummTask_, _MoveCompleted_, _AndMoveRemaining_, _MoveRemaining_, _AndMoveCompleted_, _EVMethod_, _EVBaseline_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Automatic Optional Boolean True if the calculation mode is automatic.
AutoTrack Optional Boolean True if task tracking fields automatically update resource assignments.
SpreadPercentToStatusDate Optional Boolean True if edits to total task percent complete are spread to the status date.
SpreadCostsToStatusDate Optional Boolean True if edits to total actual cost are spread to the status date. The SpreadCostsToStatusDate argument is ignored if AutoCalcCosts is True.
AutoCalcCosts Optional Boolean True if actual costs are always calculated by Project.
FixedCostAccrual Optional Long The default method used to accrue fixed costs. Can be one of the following PjAccrueAt constants: pjStart, pjEnd, or pjProrated.
CalcMultipleCriticalPaths Optional Boolean True if Project calculates multiple critical paths for the project.
CriticalSlack Optional Integer The maximum amount of slack allowed for critical tasks.
SetDefaults Optional Boolean True if the values specified for all arguments except Automatic become the default for new projects.
CalcInsProjLikeSummTask Optional Boolean True if subprojects in a master project behave like normal summary tasks. False if subprojects are calculated on their own. The default value is False.
MoveCompleted Optional Boolean True if Project moves the end of completed parts after the status date back to the status date.
AndMoveRemaining Optional Boolean True if Project moves the start of remaining parts back to the status date.
MoveRemaining Optional Boolean True if Project moves the start of remaining parts before the status date forward to the status date.
AndMoveCompleted Optional Boolean True if Project moves the end of completed parts forward to the status date.
EVMethod Optional Long The default method for calculating earned value. Can be one of the following PJEarnedValueMethod constants: pjPercentComplete or pjPhysicalPercentComplete.
EVBaseline Optional Long The baseline to use when calculating earned value. Can be one of the following PjBaselines constants: pjBaseline, or pjBaseline1. . . pjBaseline10.

Return value

Boolean

Remarks

If an argument is omitted, its default value is specified by the setting on the Schedule tab of the Project Options dialog box.

Using the OptionsCalculation method without specifying any arguments displays the Project Options dialog box with the General tab selected.

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.