C
CB
I am using MSOP 2007 standard. I cannot get the following code to work:
Sub PortfromGantttoResource()
Dim t As Task
Dim ts As Tasks
Dim A As Assignment
Set ts = ActiveProject.Tasks
For Each t In ts
If Not t Is Nothing Then
For Each A In t.Assignments
A.Text2 = t.Text2
Next A
End If
Next t
End Sub
I am trying to get the gantt view text 2 field copied to the resource text 2
field. Any ideas on what is wrong here. I have used this in MSP 2002
without any problems.
Sub PortfromGantttoResource()
Dim t As Task
Dim ts As Tasks
Dim A As Assignment
Set ts = ActiveProject.Tasks
For Each t In ts
If Not t Is Nothing Then
For Each A In t.Assignments
A.Text2 = t.Text2
Next A
End If
Next t
End Sub
I am trying to get the gantt view text 2 field copied to the resource text 2
field. Any ideas on what is wrong here. I have used this in MSP 2002
without any problems.