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

Resource.Level Method (Project)

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

Levels the resource.


expression. Level

expression A variable that represents a Resource object.


The following example levels the resources of the selected tasks.

Sub LevelResourcesInSelectedTasks() 
    Dim T As Task ' Task object used in For Each loop 
    Dim A As Assignment ' Assignment object used in For Each loop 

    For Each T In ActiveSelection.Tasks 
        For Each A In T.Assignments 
            If ActiveProject.Resources(A.ResourceID).Overallocated Then 
            End If 
        Next A 
    Next T 
End Sub
© 2018 Microsoft