Conditionally add last page w/out headers and footers

M

Max

I have a mail merge document which is basically a letter with a form
at the end that is included conditionally.

The problem is that all the pages of the letter use headers and
footers, while the form at the end requires no header and footer. If
I put a page section break at the end of the letter, then break the
header and footer connection and conditionally use INCLUDETEXT to
insert the form from another document, all looks fine apart from when
the form is not present. In this case a blank page is included at the
end of each letter. If I try to include the page section break in the
condition, it plays havoc with my other headers and footers. A page
break retains the previous header and footer so is no good either.

What I want to achieve seems quite simple: append a document at the
end of a mail merge letter conditionally, while retaining the
formatting of the appended document and without printing blank pages!

Any help with this greatly appreciated.
 
G

Graham Mayor

You could make the header conditional on the page number eg if the form is
of one page then
{IF {Page} <= {=({Numpages} - 1}) "Put your header here"}
If the header is complex then save it as an autotext entry and use the above
to place an auotext field where indicated.
Adjust the calculation to account for the required number of pages in the
form.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
Graham Mayor - Word MVP
E-mail (e-mail address removed)
Web site www.gmayor.com
Word MVP web site www.mvps.org/word
<>>< ><<> ><<> <>>< ><<> <>>< <>>< ><<>
 
M

Max

Thanks for the advice; I'm certain this will do this trick. I'll get to it Monday.

Thanks for your help, Graham.
 

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