LevelingOptions Method
Specifies leveling options for the active project.
Syntax
expression**.LevelingOptions(Automatic, DelayInSlack, AutoClearLeveling, Order, LevelEntireProject, FromDate, ToDate, PeriodBasis, LevelIndividualAssignments, LevelingCanSplit)**
*expression * Optional. An expression that returns an Application object.
Automatic Optional Boolean. True if Project automatically levels tasks in the active project.
DelayInSlack Optional Boolean. True if the active project can only be leveled within the available slack time. False if the project can be delayed in order to level resources.
AutoClearLeveling Optional Boolean. True if Project clears old leveling values before leveling.
PjLevelOrder
Constant |
---|
pjLevelID |
pjLevelStandard |
pjLevelPriority |
LevelEntireProject Optional Boolean. True if the entire project is leveled. False if only the resources in the date range specified with FromDate and ToDate are leveled.
FromDate Optional Variant. The starting date of a range within which overallocated resources are leveled. The FromDate argument is ignored if LevelEntireProject is True.
ToDate Optional Variant. The ending date of a range within which overallocated resources are leveled. The ToDate argument is ignored if LevelEntireProject is True.
PeriodBasis Optional Long. Specifies how often Project should look for overallocated resources. Can be one of the following PjLevelPeriodBasis constants: pjMinuteByMinute, pjHourByHour, pjDayByDay, pjWeekByWeek, or pjMonthByMonth.
LevelIndividualAssignments Optional Boolean. True if leveling can adjust individual assignments on a task.
LevelingCanSplit Optional Boolean. True if leveling can create splits in remaining work.
Remarks
If an argument is omitted, its default value is specified by the current setting on the Resource Leveling dialog box.
Using the LevelingOptions method without specifying any arguments brings up the Resource Leveling dialog box.
Example
The following example levels resources in the application using priority to resolve conflicts.
Sub LevelOverallocatedResources()
LevelingOptions Order:=pjLevelPriority
LevelNow (True)
End Sub
Applies to | Application Object
See Also | Level Method | LevelClearDates Method | LevelIndividualAssignments Property | LevelingCanSplit Property | LevelingClear Method | LevelNow Method | PreleveledFinish Property | PreleveledStart Property