G
gobogo90
I need assistance retrieving data from an Enterprise Task Text field
called Time Reporting Comments. I have displayed the field in the
Task Usage view. Though the field is a Task Text field, Project
allows the user to set values at the assignment level. It is that
data I am trying to retrieve and change.
I recorded a macro where I change the value of the field for an
assignment, and the macro uses the following line to store new data:
SetResourceField Field:="Time Reporting Comments", Value:="Reconfig-
Joe"
In my macro I loop over all tasks and assignments, but I do not really
know where this data may be stored and thus don't know the syntax to
retrieve it. I can grab the data at the Task level,but not the
assignment level. The following line is my best effort yet but fails
with a type mismatch:
Task_Comment =
ActiveProject.Tasks(Task_Cur).Assignments(Ass_Cur).GetField(FieldID:=FieldNameToFieldConstant(FieldName:="Time
Reporting Comments"))
Any suggestions?
G
called Time Reporting Comments. I have displayed the field in the
Task Usage view. Though the field is a Task Text field, Project
allows the user to set values at the assignment level. It is that
data I am trying to retrieve and change.
I recorded a macro where I change the value of the field for an
assignment, and the macro uses the following line to store new data:
SetResourceField Field:="Time Reporting Comments", Value:="Reconfig-
Joe"
In my macro I loop over all tasks and assignments, but I do not really
know where this data may be stored and thus don't know the syntax to
retrieve it. I can grab the data at the Task level,but not the
assignment level. The following line is my best effort yet but fails
with a type mismatch:
Task_Comment =
ActiveProject.Tasks(Task_Cur).Assignments(Ass_Cur).GetField(FieldID:=FieldNameToFieldConstant(FieldName:="Time
Reporting Comments"))
Any suggestions?
G