K
kjwass53
For each task in a project I would like to be able to set a field
(let's say Text1) based on the contents of the Text2 fields in any
tasks that are predecessors (the immediate ones only). Can anyone
suggest a control structure for this? I know it would have something
like this in it...
Sub MySetField()
Dim MyProj As Project
Dim T As Task
MyProj = ActiveProject
For Each T In MyProj.Tasks
'check for predecessor tasks - if none then skip
'for each predecessor task
'check value of Text2
'logic to determine value Text1 (in the current task)
'end
' set value of Text1 in current task
End
End Sub
Thanks in anticipation,
Kevin
(let's say Text1) based on the contents of the Text2 fields in any
tasks that are predecessors (the immediate ones only). Can anyone
suggest a control structure for this? I know it would have something
like this in it...
Sub MySetField()
Dim MyProj As Project
Dim T As Task
MyProj = ActiveProject
For Each T In MyProj.Tasks
'check for predecessor tasks - if none then skip
'for each predecessor task
'check value of Text2
'logic to determine value Text1 (in the current task)
'end
' set value of Text1 in current task
End
End Sub
Thanks in anticipation,
Kevin