C
Claudio Hidetoshi
Hi all, I'm trying to set a task Start date to a project custom field (date
field), based on user outline code choice.
Example: if the user select "Development" in outline field, I have to set
the project custom field with the Start date of a task named "Development".
Code:
strTask = pj.Tasks(1).GetField(Application.FieldNameToFieldConstant("Atual
Fase", pjTask))
bFound = Find(Field:="TaskName", Test:="contains", Value:=strTask,
Next:=True, MatchCase:=False)
If bFound Then
SetTaskField Field:="Atual Fase Start", Value:=pj.Tasks.Item(1).Start,
AllSelectedTasks:=False, Create:=False, TaskID:=CStr(pj.Tasks(1).ID),
ProjectName:=pj.Name
End If
Any idea ?
field), based on user outline code choice.
Example: if the user select "Development" in outline field, I have to set
the project custom field with the Start date of a task named "Development".
Code:
strTask = pj.Tasks(1).GetField(Application.FieldNameToFieldConstant("Atual
Fase", pjTask))
bFound = Find(Field:="TaskName", Test:="contains", Value:=strTask,
Next:=True, MatchCase:=False)
If bFound Then
SetTaskField Field:="Atual Fase Start", Value:=pj.Tasks.Item(1).Start,
AllSelectedTasks:=False, Create:=False, TaskID:=CStr(pj.Tasks(1).ID),
ProjectName:=pj.Name
End If
Any idea ?