O
Oskari Juslin
Hi everybody!
I made a procedure to assign a Dummy resources to all
tasks of the project, but it can't handle e.g. situations
where tasks are copied and pasted. Can anybody help?
Here how it is done now:
Private Sub AddDummies()
Dim ID As Long, Task As Task
Dim R As Resource, i As Integer, UnikkoID
Set R = ActiveProject.Resources.Add(Name:="Dummy")
For Each Task In ActiveProject.Tasks
If Task.Name <> "" Then
If ActiveProject.Tasks(Task).Summary Then
Else
R.Assignments.Add TaskID:=(Task)
End If
End If
Next
End Sub
I made a procedure to assign a Dummy resources to all
tasks of the project, but it can't handle e.g. situations
where tasks are copied and pasted. Can anybody help?
Here how it is done now:
Private Sub AddDummies()
Dim ID As Long, Task As Task
Dim R As Resource, i As Integer, UnikkoID
Set R = ActiveProject.Resources.Add(Name:="Dummy")
For Each Task In ActiveProject.Tasks
If Task.Name <> "" Then
If ActiveProject.Tasks(Task).Summary Then
Else
R.Assignments.Add TaskID:=(Task)
End If
End If
Next
End Sub