T
theintern
Can anyone tell me why it give me an error on the second to last line?
Dim t1 As Task
Dim t2 As Task
Dim ts As Tasks
Set ts = ActiveProject.Tasks
Set t1 = ts(1)
Set t2 = ts(2)
While Not (t2.Name = "")
Set t1 = ts(t2.ID - 1)
If t1.ResourceInitials = t2.ResourceInitials Then
t2.Start = t1.Finish
End If
t2 = ts(t2.ID + 1)
Wend
thanks!
Dim t1 As Task
Dim t2 As Task
Dim ts As Tasks
Set ts = ActiveProject.Tasks
Set t1 = ts(1)
Set t2 = ts(2)
While Not (t2.Name = "")
Set t1 = ts(t2.ID - 1)
If t1.ResourceInitials = t2.ResourceInitials Then
t2.Start = t1.Finish
End If
t2 = ts(t2.ID + 1)
Wend
thanks!