E
espenalb
Hi guys.
I am trying to extend MSPRoject2007 with a VBA macro.
I need to work with the Task.Resources.Collection
From the doc, I see that Task.Resources has a .Add method:
Function Add([Name], [Before]) As Resource
However, when I call the following code, the task.Resources.Count
remains 0:
Dim resource As resource
Set resource = task.Resources.Add("NameOfResource")
I can see that the "resource" returned has the name "NameOfResource",
but nothing happens to the task.Resources.Count...
BTW: I am running this on a project file that is connected to MSPRoject
Server 2007. I have not tried this code on a project file that is not
connected to project server.
I am trying to extend MSPRoject2007 with a VBA macro.
I need to work with the Task.Resources.Collection
From the doc, I see that Task.Resources has a .Add method:
Function Add([Name], [Before]) As Resource
However, when I call the following code, the task.Resources.Count
remains 0:
Dim resource As resource
Set resource = task.Resources.Add("NameOfResource")
I can see that the "resource" returned has the name "NameOfResource",
but nothing happens to the task.Resources.Count...
BTW: I am running this on a project file that is connected to MSPRoject
Server 2007. I have not tried this code on a project file that is not
connected to project server.