J
Jim Aksel
We have contactual requirements to submit documentation to our customer for
review. The customer reviews the document and makes comments (no time
limits, but usually about 5 weeks). Once our customer gives us their
comments, we have 30 days to incorporate the comments and resubmit the
documentation.
I can generate my own schedule logic to reach the "resubmit" milestone and
have that take 30ed. However, I would like to set a deadline on that final
resubmit milestone based on the other milestone of "comments received"[Actual
Finish]
Here is what I have.. I select the "resubmit" milestone task and run this
macro:
Sub Macro2()
SelectTaskField Row:=0, Column:="Deadline"
SetTaskField Field:="Deadline", Value:="7/27/2007"
End Sub
However, Value is a string that must evaluate to a date. What I want is
something more like this:
Sub Macro2()
SelectTaskField Row:=0, Column:="Deadline"
'Throw up a form that asks for the ID number of the predecessor
SetTaskField Field:="Deadline", Value:=str(projdateadd([Actual Finish of
Another task],30ed, "Normal Calendar"))
End Sub
I certainly know the predecessor task, I even know its TaskID. So, what's a
good way to handle this? Should I expose a form that asks for the ID number
of the predecessor and the requested offset? If I do that, I need to put a
formula into the above Macro and I was wondering if someone could volunteer a
few random rants about what I should use for that formula.
One other tweak -- 30ed cannot land on a non-work day in a special calendar.
I guess I will settle for 20d instead of 30ed.
review. The customer reviews the document and makes comments (no time
limits, but usually about 5 weeks). Once our customer gives us their
comments, we have 30 days to incorporate the comments and resubmit the
documentation.
I can generate my own schedule logic to reach the "resubmit" milestone and
have that take 30ed. However, I would like to set a deadline on that final
resubmit milestone based on the other milestone of "comments received"[Actual
Finish]
Here is what I have.. I select the "resubmit" milestone task and run this
macro:
Sub Macro2()
SelectTaskField Row:=0, Column:="Deadline"
SetTaskField Field:="Deadline", Value:="7/27/2007"
End Sub
However, Value is a string that must evaluate to a date. What I want is
something more like this:
Sub Macro2()
SelectTaskField Row:=0, Column:="Deadline"
'Throw up a form that asks for the ID number of the predecessor
SetTaskField Field:="Deadline", Value:=str(projdateadd([Actual Finish of
Another task],30ed, "Normal Calendar"))
End Sub
I certainly know the predecessor task, I even know its TaskID. So, what's a
good way to handle this? Should I expose a form that asks for the ID number
of the predecessor and the requested offset? If I do that, I need to put a
formula into the above Macro and I was wondering if someone could volunteer a
few random rants about what I should use for that formula.
One other tweak -- 30ed cannot land on a non-work day in a special calendar.
I guess I will settle for 20d instead of 30ed.