jgzigler said:
I have some programming experience, but I am very out-of-practice on it.
How would I set up the report so that when a resource selected the report
(ie on a Monday), they would be prompted for their resource name and it would
automatically:
1) select tasks due that calendar week but not completed (based on todays
date) AND
2) select tasks due before todays date that arent complete AND
3) automatically populate the spare project summary field you mention with
the resource name they selected THEN
4) print the report with their name in header
Basically these are very inexperienced users so I need to set it up as
seamlessly as possible without their having to do anything but select their
own name.
Joel
Joel,
First, selecting a report cannot initiate a macro, but a macro can
initiate a report. As far as setting up the VBA code, here is the
pseudo-code to get you started.
1. Use the InputBox Function to get the resource's name
2. Use the FilterEdit Method to set up the multiple criteria for due
tasks and incomplete tasks. The Current Date property can be used to set
up the date parameters.
3. Using the name obtained from step 1, set the desired task text field
for the project summary task of the active project
4. Print the report using the ReportPrint Method
The above assumes you have already set up the custom report with the
text field in the header and the filter name created by the macro (i.e.
pick a convenient name and then identify the filter you create in the
macro by that name).
Hope this helps.
John
Project MVP