C
Cristina Pupper
Hello Everyone!
I want to create a VBA macro that changes the resource units for each task
in a project. Right now I have to manually go through each task in a project
and change the resource units by hand. I want to write a macro that would
look like the following:
For each Task in the Active Project
For each Resource Assigned to the Task
If Resource Name = "DAN"
Change Resource Units to 50%
Else
Change Resource Units to 25%
Endif
Next Resource
Next Task
I know enough VBA to write the loop that accesses each task in the Active
Project. What I do not understand is how to access the resources assigned to
each task. I was looking at the Assignments collection for each task, but
did not see a units property.
Thanks!
Cristina
I want to create a VBA macro that changes the resource units for each task
in a project. Right now I have to manually go through each task in a project
and change the resource units by hand. I want to write a macro that would
look like the following:
For each Task in the Active Project
For each Resource Assigned to the Task
If Resource Name = "DAN"
Change Resource Units to 50%
Else
Change Resource Units to 25%
Endif
Next Resource
Next Task
I know enough VBA to write the loop that accesses each task in the Active
Project. What I do not understand is how to access the resources assigned to
each task. I was looking at the Assignments collection for each task, but
did not see a units property.
Thanks!
Cristina