ProjectUser said:
Hi John,
Yes, I really do need to have a customized field in this case. Here’s why:
I’m on a construction project that has multiple sites with identical WBS and
tasks across all sites. So, Outline 2 is the Site Name. Within this
schedule that’s repetitive, per site, is a task (design accepted) that will
trigger a “milestoneâ€.
I need to develop a view “report†at the Outline Level 2 level that looks
similar to an excel spreadsheet. In other words, it report will show no
tasks, only the site names (outline level 2) along with a number of fields.
So, this triggered “milestone†is the customized field I’m referring to. I
need it to have the same value as the completion date of a task.
Does this make it clearer?
Here's my feable attempt that certainly doesn't work. Maybe you can help me
fix this:
Sub Custom()
Dim tsk As Task
Dim assgn As Assignment
For Each tsk In ActiveProject.Tasks
If tsk.Name = "Design Accepted" And tsk.Duration = "100%" Then
assgn.Date1 = (here's where I'm totally clueless!)
End If
Next tsk
End Sub
ProjectUser,
I think you misunderstood my statement about custom fields. To
differentiate spare fields whose contents is developed by a formula
versus VBA code, I refer to the former as a customized field. It's a
fine point, probably not worth further discussion.
I take issue with your statement about, "... identical WBS and
tasks...". If the tasks are being performed at different sites, they are
NOT identical. They may have the same description (although they should
not), same work content, same duration, etc., each one is in fact unique
simply because they are at different sites. For example, painting house
"A" is NOT the same task as painting house "B".
OK, enough clarifying philosophy. Based on your description why not
simply create a filter the looks for outline level 2, name contains
"design accepted" and percent complete, (I assume your statement about
duration equalling 100% is not what you meant), equals 100 and you
should be all set. No VBA required. Am I missing something?
John
Project MVP