Application.BaselineSave method (Project)

Creates a baseline plan.

Syntax

expression. BaselineSave( _All_, _Copy_, _Into_, _RollupToSummaryTasks_, _RollupFromSubtasks_, _SetDefaults_ )

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
All Optional Boolean True if the baseline plan is set for all tasks. False if the baseline plan is set only for the selected tasks. The default value is True.
Copy Optional Long The fields to copy. Can be one of the PjSaveBaselineFrom constants.
Into Optional Long Where the fields should be copied. Can be one of the PjSaveBaselineTo constants.
RollupToSummaryTasks Optional Boolean True if parent summary task baseline data are rolled up from selected summary tasks.
RollupFromSubtasks Optional Boolean True if summary task baseline data are rolled up from subtasks.
SetDefaults Optional Boolean True if the values of RollupToSummaryTasks or RollupFromSubtasks are used as default values for new projects.

Return value

Boolean

Remarks

RollupToSummaryTasks and RollupFromSubTasks will have an effect only if All is false.

Example

The following example first saves the baseline and then clears it.

Sub Baseline_Save() 
 
 Dim Result As Boolean 
 
 'Save baseline 
 Result = BaselineSave(True) 
 'Clear baseline 
 Result = BaselineClear (True) 
End Sub

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.