Condividi tramite


Application.EnterpriseResSubstitutionWizard Method (Project)

Runs the Resource Substitution Wizard. Available in Project Professional only.

Syntax

expression .EnterpriseResSubstitutionWizard(ProjectList, PoolOption, RBSorResourceList, FreezeHorizonDate, UpdateProjects, SaveReport, Path, AssignProposedResources, LevelProposedBookings)

expression A variable that represents an Application object.

Parameters

Name

Required/Optional

Data Type

Description

ProjectList

Optional

String

A comma-separated list of portfolio projects in the database.

PoolOption

Optional

Long

Specifies the resource pool option. Can be one of the following PjResSubstitutionPoolOption constants: pjResSubstitutionResInList, pjResSubstitutionResInProject, or pjResSubstitutionResInRBS. The default value is pjResSubstitutionResInProject.

RBSorResourceList

Optional

String

The name of the RBS (resource breakdown structure) level to use if pjResSubstitutionResInRBS was specified in the PoolOption argument. If pjResSubstitutionResInList was specified in the PoolOption argument, the RBSorResourceList argument specifies a comma-separated list of resource names to use.

FreezeHorizonDate

Optional

String

The date of the resource freeze horizon.

UpdateProjects

Optional

Boolean

True if the Resource Substitution Wizard updates projects with the new resource information. The default value is True.

SaveReport

Optional

Boolean

True if the Resource Substitution Wizard saves a report. The default value is False.

Path

Optional

String

The directory to use when creating the report. The default value is the My Documents folder of the current user.

AssignProposedResources

Optional

Variant

LevelProposedBookings

Optional

Variant

Return Value

Boolean

Remarks

No events are fired when using the EnterpriseResSubstitutionWizard method.

The EnterpriseResSubstitutionWizard method does not include a parameter for specifying that resources from the enterprise resource pool should be used.