A
alex
Hi,
Context:
I try to read a value from a custom column attached to each task.
I don't find the way to read the value of a custom column.
The custom column is a listbox filled by a table data from EPM.
So the name is "EQUIPEPERSONNALISEE".
When I try the code below, the program said, incompatibilty type.
I think it's because the argument is wrong.
Is there any way to get it?
###################################"
Code:
Sub test()
Dim T As Task
Dim i As Long
For Each T In ActiveProject.Tasks
If Not (T Is Nothing) Then
For i = 0 To 10
Set T = ActiveProject.Tasks(T.ID)
' Save the task name
If i = 0 Then
OldName = T.GetField("EQUIPEPERSONNALISEE")
SetTaskField Field:="EQUIPEPERSONNALISEE", Value:="Non
renseigné", TaskID:=T.ID
End If
Next i
End If
Next T
End Sub
###################################"
best regards,
Alexandre BARAULT
http://alexandrebarault.blogspot.com/
Context:
I try to read a value from a custom column attached to each task.
I don't find the way to read the value of a custom column.
The custom column is a listbox filled by a table data from EPM.
So the name is "EQUIPEPERSONNALISEE".
When I try the code below, the program said, incompatibilty type.
I think it's because the argument is wrong.
Is there any way to get it?
###################################"
Code:
Sub test()
Dim T As Task
Dim i As Long
For Each T In ActiveProject.Tasks
If Not (T Is Nothing) Then
For i = 0 To 10
Set T = ActiveProject.Tasks(T.ID)
' Save the task name
If i = 0 Then
OldName = T.GetField("EQUIPEPERSONNALISEE")
SetTaskField Field:="EQUIPEPERSONNALISEE", Value:="Non
renseigné", TaskID:=T.ID
End If
Next i
End If
Next T
End Sub
###################################"
best regards,
Alexandre BARAULT
http://alexandrebarault.blogspot.com/