Conditional headers

D

DavidC

Hi,
A bit of a long shot I suspect, but, I want the header to change dependant
on which filter is used for a report. So if the report is about civil work
then I want the Civil engineer's name to show in the header etc. I have the
names against the activities but since they change from one activity to the
next, then simply adding in that field does not seem to return the name in
the header. I suspect it is because the header does not know which of the
many values in the field to return. Any ideas to have a IIF([Text1]="Civil',
"Joe B loggs,"") in the header?

Regards

DavidC
 
D

DavidC

Hi Trevor,

Thanks for your reply.

I have a number of filters, one each for civil, electrical, mechanical,
cooling tower, general, instruments, and Technical. I then run a report
based on those filters and the person the report is sent to is related to the
discipline. If I could access the name of the filter and then based on that
have the page setup enter the relevant name of the person responsible for
that report, it would be great. So whilst I can place the filter name in the
header I want the name of the person responsible for that report to be
inserted not the filter name. Hence the question about making the data a
conditional entry based on the filetr name.

Regards

DavidC

Trevor Rabey said:
You can add the name of the filter to the header and/or footer using the
drop-down list in Page Setup, Header (Footer).
Why not just call the filter "Civil".
Trevor Rabey 0407213955 61 8 92727485 PERFECT PROJECT PLANNING
www.perfectproject.com.au
DavidC said:
Hi,
A bit of a long shot I suspect, but, I want the header to change dependant
on which filter is used for a report. So if the report is about civil
work
then I want the Civil engineer's name to show in the header etc. I have
the
names against the activities but since they change from one activity to
the
next, then simply adding in that field does not seem to return the name in
the header. I suspect it is because the header does not know which of the
many values in the field to return. Any ideas to have a
IIF([Text1]="Civil',
"Joe B loggs,"") in the header?

Regards

DavidC
 
J

JulieS

Hello DavidC,

You could create a macro to add the name of the current filter to the
Project Summary Task text1 field. Then in Text2 create the formula
much like you note. You'll need to set the summary task to "use
formula". Then reference Text2 in the header instead of the Filter.

You'll need to remember to run the macro after applying the filter to
populate Text1, but other than that, it should be all set. You can
also add the macro to a toolbar button to make it easier to run.

I hope this helps. Let us know how you get along.

Julie
Project MVP

Visit http://project.mvps.org/ for the FAQs and additional information
about Microsoft Project


DavidC said:
Hi Trevor,

Thanks for your reply.

I have a number of filters, one each for civil, electrical,
mechanical,
cooling tower, general, instruments, and Technical. I then run a
report
based on those filters and the person the report is sent to is
related to the
discipline. If I could access the name of the filter and then based
on that
have the page setup enter the relevant name of the person
responsible for
that report, it would be great. So whilst I can place the filter
name in the
header I want the name of the person responsible for that report to
be
inserted not the filter name. Hence the question about making the
data a
conditional entry based on the filetr name.

Regards

DavidC

Trevor Rabey said:
You can add the name of the filter to the header and/or footer
using the
drop-down list in Page Setup, Header (Footer).
Why not just call the filter "Civil".
Trevor Rabey 0407213955 61 8 92727485 PERFECT PROJECT PLANNING
www.perfectproject.com.au
DavidC said:
Hi,
A bit of a long shot I suspect, but, I want the header to change
dependant
on which filter is used for a report. So if the report is about
civil
work
then I want the Civil engineer's name to show in the header etc.
I have
the
names against the activities but since they change from one
activity to
the
next, then simply adding in that field does not seem to return
the name in
the header. I suspect it is because the header does not know
which of the
many values in the field to return. Any ideas to have a
IIF([Text1]="Civil',
"Joe B loggs,"") in the header?

Regards

DavidC
 
D

DavidC

Thanks Julie,

Figured that might be the answer. Looks like I may need to do a little more
work now.

Regards

DavidC

JulieS said:
Hello DavidC,

You could create a macro to add the name of the current filter to the
Project Summary Task text1 field. Then in Text2 create the formula
much like you note. You'll need to set the summary task to "use
formula". Then reference Text2 in the header instead of the Filter.

You'll need to remember to run the macro after applying the filter to
populate Text1, but other than that, it should be all set. You can
also add the macro to a toolbar button to make it easier to run.

I hope this helps. Let us know how you get along.

Julie
Project MVP

Visit http://project.mvps.org/ for the FAQs and additional information
about Microsoft Project


DavidC said:
Hi Trevor,

Thanks for your reply.

I have a number of filters, one each for civil, electrical,
mechanical,
cooling tower, general, instruments, and Technical. I then run a
report
based on those filters and the person the report is sent to is
related to the
discipline. If I could access the name of the filter and then based
on that
have the page setup enter the relevant name of the person
responsible for
that report, it would be great. So whilst I can place the filter
name in the
header I want the name of the person responsible for that report to
be
inserted not the filter name. Hence the question about making the
data a
conditional entry based on the filetr name.

Regards

DavidC

Trevor Rabey said:
You can add the name of the filter to the header and/or footer
using the
drop-down list in Page Setup, Header (Footer).
Why not just call the filter "Civil".
Trevor Rabey 0407213955 61 8 92727485 PERFECT PROJECT PLANNING
www.perfectproject.com.au
Hi,
A bit of a long shot I suspect, but, I want the header to change
dependant
on which filter is used for a report. So if the report is about
civil
work
then I want the Civil engineer's name to show in the header etc.
I have
the
names against the activities but since they change from one
activity to
the
next, then simply adding in that field does not seem to return
the name in
the header. I suspect it is because the header does not know
which of the
many values in the field to return. Any ideas to have a
IIF([Text1]="Civil',
"Joe B loggs,"") in the header?

Regards

DavidC
 
J

JulieS

You're welcome David and thanks for the feedback.

Julie

DavidC said:
Thanks Julie,

Figured that might be the answer. Looks like I may need to do a
little more
work now.

Regards

DavidC

JulieS said:
Hello DavidC,

You could create a macro to add the name of the current filter to
the
Project Summary Task text1 field. Then in Text2 create the formula
much like you note. You'll need to set the summary task to "use
formula". Then reference Text2 in the header instead of the
Filter.

You'll need to remember to run the macro after applying the filter
to
populate Text1, but other than that, it should be all set. You can
also add the macro to a toolbar button to make it easier to run.

I hope this helps. Let us know how you get along.

Julie
Project MVP

Visit http://project.mvps.org/ for the FAQs and additional
information
about Microsoft Project


DavidC said:
Hi Trevor,

Thanks for your reply.

I have a number of filters, one each for civil, electrical,
mechanical,
cooling tower, general, instruments, and Technical. I then run a
report
based on those filters and the person the report is sent to is
related to the
discipline. If I could access the name of the filter and then
based
on that
have the page setup enter the relevant name of the person
responsible for
that report, it would be great. So whilst I can place the filter
name in the
header I want the name of the person responsible for that report
to
be
inserted not the filter name. Hence the question about making the
data a
conditional entry based on the filetr name.

Regards

DavidC

:

You can add the name of the filter to the header and/or footer
using the
drop-down list in Page Setup, Header (Footer).
Why not just call the filter "Civil".
Trevor Rabey 0407213955 61 8 92727485 PERFECT PROJECT PLANNING
www.perfectproject.com.au
Hi,
A bit of a long shot I suspect, but, I want the header to
change
dependant
on which filter is used for a report. So if the report is
about
civil
work
then I want the Civil engineer's name to show in the header
etc.
I have
the
names against the activities but since they change from one
activity to
the
next, then simply adding in that field does not seem to return
the name in
the header. I suspect it is because the header does not know
which of the
many values in the field to return. Any ideas to have a
IIF([Text1]="Civil',
"Joe B loggs,"") in the header?

Regards

DavidC
 

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