Expand Minimize
This topic has not yet been rated - Rate this topic

Application.BaselineSave Method (Project)

Creates a baseline plan.

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

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

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
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.