Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.LevelingOptions Method (Project)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Specifies leveling options for the active project.

Syntax

expression. LevelingOptions( ** Automatic, ** DelayInSlack, ** AutoClearLeveling, ** Order, ** LevelEntireProject, ** FromDate, ** ToDate, ** PeriodBasis, ** LevelIndividualAssignments, ** LevelingCanSplit, ** LevelProposedBookings** )

expression A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
AutomaticOptionalBooleanTrue if Project automatically levels tasks in the active project.
DelayInSlackOptionalBooleanTrue if the active project can be leveled only within the available slack time. False if the project can be delayed in order to level resources.
AutoClearLevelingOptionalBooleanTrue if Project clears old leveling values before leveling.
OrderOptionalLongA constant that specifies how Project should resolve resource conflicts when leveling tasks in the active project. Can be one of the PjLevelOrder constants.
LevelEntireProjectOptionalBooleanTrue if the entire project is leveled. False if only the resources in the date range specified with FromDate and ToDate are leveled.
FromDateOptionalVariantThe starting date of a range within which overallocated resources are leveled. The FromDate argument is ignored if LevelEntireProject is True.
ToDateOptionalVariantThe ending date of a range within which overallocated resources are leveled. The ToDate argument is ignored if LevelEntireProject is True.
PeriodBasisOptionalLongSpecifies how often Project should look for overallocated resources. Can be one of the PjLevelPeriodBasis constants.
LevelIndividualAssignmentsOptionalBooleanTrue if leveling can adjust individual assignments on a task.
LevelingCanSplitOptionalBooleanTrue if leveling can create splits in remaining work.
LevelProposedBookingsOptionalBooleanTrue if leveling includes proposed resource bookings.

Return Value

Boolean

Remarks

If an argument is omitted, its default value is specified by the current setting in the Resource Leveling dialog box.

Using the LevelingOptions method without specifying any arguments displays the Resource Leveling dialog box.

To include manually scheduled tasks in the leveling options, use the LevelingOptionsEx method.

Example

The following example levels resources in the application using priority to resolve conflicts.

Sub LevelOverallocatedResources() 
 LevelingOptions Order:=pjLevelPriority 
 LevelNow (True) 
End Sub
© 2018 Microsoft