Article ID: 159630
Article Last Modified on 8/17/2005
Sub SetWork() Set Tmgr = GetObject(,"TeamManager.Application") Tmgr.Tasks(1).TotalWork = "1d" End SubIn order to decrease the work on the task to 1 day with no unassigned work, you could do something similar to:
Sub SetWork()
Set Tmgr = GetObject(, "TeamManager.Application")
' Set total work on each assignment.
For Each PeopleAssignment In Tmgr.Tasks(1).Assignments
PeopleAssignment.TotalWork = ".5d"
Next
' Remove unassigned work from task; otherwise, the task will still show
' 3 days of work.
Tmgr.Tasks(1).TotalWork = "1d"
End Sub
Additional query words: 1.0 1.00
Keywords: kberrmsg KB159630