Running code after ProjectAssignmentNew has completed

J

Jon

Hi There

The problem I am having is that I want to update a resource list everytime a
resource is assigned to a task. The issue here is that project does not
assign the resource to the task resource names column until after
ProjectAssignmentNew has completed running. How can I force project to make
the assignment link before ProjectAssignmentNew has finished running or where
do I put code so that it will automatically run right after
ProjectAssignmentNew has finished

Any help is much appreciated

Jon
 
R

Rod Gill

The ProjectAssignmentNew event provides an ID of the assignment that has
just been created (according to help), so whilst the resource names column
hasn't been updated, the assignment should have been created.

The following works when entered in the immediate window in the VBE and you
press enter:

?activeproject.Tasks(2).Assignments.UniqueID(2097157).TaskName

2097157 is a unique assignment ID.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top