A family of Microsoft relational database management systems designed for ease of use.
Ben,
Sure, go to the MVP website at: http://project.mvps.org/faqs.htm, and take a look at FAQ 37 - Custom fields in views.
Hope this helps.
John
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have a simple Resource Usage view that I want to share with the Resources (the project team) so they can stay alert to their upcoming tasks.
It would be great to add a couple of columns:
- The Task ID (so they can go back to the Gantt chart and locate the task if they want to), and
- The list of all the Resource Names that work on that task - the list of people they will have to collaborate with in order to get that task accomplished.
The problem is that those two are Task fields, and they do not appear as options when creating a new column in the Resource Usage view.
Is there a way, even if it involves VBA, to get those Task fields to show in the Resource Usage view?
A family of Microsoft relational database management systems designed for ease of use.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Ben,
Sure, go to the MVP website at: http://project.mvps.org/faqs.htm, and take a look at FAQ 37 - Custom fields in views.
Hope this helps.
John
Ben,
Okay, I didn't remember what field was used in the example in FAQ 37 but to be precise, it's still not "out of the box". How about we say it's "directly per the FAQ code".
With regard to further automation, it may be possible to use an Event based macro. An Event macro fires when some event occurs. For example, you can set up a macro to run when a file is opened or closed. In your specific case it looks like the ProjectBeforeAssignmentChange Event might be what you would need. I copied the following example from Project's VBA help file.
Example
This example examines any new resource assignments and cancels them if they are for the specified resource. This example requires a new class module and additional code for it to have an effect.
| <br>Visual Basic for Applications |
|---|
| Private Sub App_ProjectBeforeAssignmentChange(ByVal asg As Assignment, ByVal Field As PjAssignmentField, _<br><br><br> ByVal NewVal As Variant, Cancel As Boolean)<br><br><br><br> <br><br><br><br><br> If Field = pjAssignmentResourceName And NewVal = "Lisa Jones" Then<br><br><br> MsgBox "Lisa is no longer available for assignment!"<br><br><br> Cancel = True<br><br><br> End If<br><br><br>End Sub |
However, setting up an event triggered macro requires a little more than simply using the above code. You need to create a class module. You can read more about it in the VBA help file, and/or take a look at Jack Dahlgren's website at: http://masamiki.com/project/project\_open.htm
Hope this helps.
John
With NO modification in fact - I had already defined Task-Text1 to be what I needed (Task-ResourceNames), so I just ran the macro as it was written and this set the Assignment-Resource-Text1 variable to that same value. Right "out of the box", in this specific case :-)
Still, it does demand that I re-run the macro every time I change resource assignments, etc. Is there any way of defining Assignment-Resource-Text1 to be some kind of a function that itself looks up the value of the corresponding Task-Text1 and so have the program take care of the updating?
Thanks for your support and your follow-up, John. Regards,
Ben
Ben,
You're welcome and thanks for the feedback.
Just for reference, "works out of the box" normally means it will do what you want with the basic application (i.e. out of the box), and no customization or programming required. I'll assume you meant that the macro referenced in the FAQ worked with minor modifications.
John
Thank you very much for your prompt response, John, it worked right out of the box!
Regards,
Ben