If fields and page numbering in mail merge documents

Y

yana

Hello,

Word 2002 SP1: I have a mail merge document where one of
the merged fields changes all the time. If it is too big
to fit on one page, it is automatically goes to the next
page, etc.. etc.. In the footer I have the following { IF
{ PAGE } > 1 "PAGE { PAGE }" ""} statement. If I do not
perform mail merge the above statement working fine, but I
soon as I merged it stops working and { page } = 1 all the
time.

Did anybody else run into this and if yes what was the
solution?

Thanks.
 
S

Suzanne S. Barnhill

Certain fields in the header/footer are not retained in a mail merge. But if
this is a Letter merge, you need not worry about the page number, since Word
automatically creates a new section for each "letter," so that the first
page is 1, the second (if any) is 2, and so on.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Y

yana

Thank you very much for your response. I checked and "yes"
{ page } by itself works fine, but as you said { if {
page }} does not work properly. I need to print certain
text in the footer based on the page number (example:
there is no text in the footer on page 1; on page 2 I
should add "continue from page 1" and on page 3 I should
add "end". How can I do that without IF/Page conditions?

Thanks
 
S

Suzanne S. Barnhill

That's going to be more difficult. You can use "Different first page" to
have a different header/footer on page 1, but it would be difficult to do
the rest without conditional fields.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
Y

yana

Then what are my options? If I cannot use conditional
fields, what is the better way to do what I try to
accomplish? Whould the { if { page } } work if I build
merge document on the fly (programmatically)?

Thank You.
 
S

Suzanne S. Barnhill

At this point you might drop back and ask yourself why you need to have that
information on the pages at all. Do you not trust readers to know that page
2 comes after page 1, or that page 3 is the last page if it is not followed
by any other?

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://www.mvps.org/word
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
D

Dayo Mitchell

On a totally different track, using the footer text "page x of y" might get
the same point across, although in a much less sophisticated manner....

DM
 

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