Hi, I'm trying to assign a resource to a task in MS Project by using the example from MSDN for VB...
"Use the Add method to add an Assignment object to the Assignments collection. The following example adds a resource identified by the number of 212 as a new assignment for the specified task. ActiveProject.Tasks(1).Assignments.Add ResourceID:=212" My code fragment for Python... proj.Tasks(3).Assignments.Add(ResourceID=2) but this doesn't work. I get... Error (-2147352567, 'Exception occurred.', (0, None, 'The argument value is not valid.', 'D:\\Program Files\\Microsoft Office\\OFFICE11\\VBAPJ.CHM', 131074, -2146827187), None) Anyone got any ideas about how to attack this? Cheers, Felix -- http://mail.python.org/mailman/listinfo/python-list