Page numbering in footer (if 2 pages)

P

PMS

I am working with Word 2000. I have several documents
that are forms which merge. Sometimes the merged
documents are one page, sometimes two. When they are one
page, I do not want a page number (Page 1) to appear.
When the documents are two pages, I would like both pages
to show (Page 1) and (Page 2). Help! Thanks, pms.
 
C

Charles Kenyon

You need a conditional footer. This is a footer in an IF field. Take a look
at http://www.mvps.org/word/FAQs/Numbering/PageNumbering.htm. Fields have to
be entered using Ctrl-F9 to insert the braces. What you want is something
like:

{ IF {NUMPAGES} > 1 "{ Page }" "" }

You will want the following if your merge is for more than one record.
{ IF {SECTIONPAGES} > 1 "{ Page }" "" }
 
C

Charles Kenyon

I just tried it myself and ran into problems, too. I found that if I put a
space between the second set of quotation marks that it works. Don't know
why; it should work without the space, or for that matter without the second
set of quotation marks.

Word 2003

{ If { NumPages } > 1 "Page { Page }" " " }
 
P

PMS

Still not working with one page. I do have a section
break at the top of the document on the first page. Is
this creating a problem? I tried making a different first
page, but that did not work either. Thanks.
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < PMS > écrivait :
In this message, < PMS > wrote:

|| Still not working with one page. I do have a section
|| break at the top of the document on the first page. Is
|| this creating a problem? I tried making a different first
|| page, but that did not work either. Thanks.
||

You mean that you have a continuous section break at the beginning of the
first page?
That is the source of your problem!

You do not need a "First page different".
If you always have a continuous section break on the first page, then your
job is real easy.

(Here I put the page number in the footer, of course change footer for
header if you want...)
Display the header/footer;
Make sure that your cursor is in the Section 2 footer;
Uncheck "Same as previous" for Section 2 footer;
Insert the page number or any other text you want in the footer in section 2
and leave the section 1 footer blank;
Close the header/footer.

Now if you have only one page, you will not have the footer at the bottom of
the page, it will appear only on page 2 as section 2 will always start on
top of page 2 (Page 1 starts with Section 1, so the footer displayed belongs
to section 1). It will still work if you add another section break below
section 2 because by default the third section will be the same as the
second ("Same as previous" is automatically "on" when inserting section
breaks).

HTH

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
C

Charles Kenyon

The problem is that the poster _wants_ the footer to appear on page one, but
only if there is more than one page.
 
S

Suzanne S. Barnhill

The following field should work:

{ IF { NUMPAGES } > 1 "Page { PAGE }" }

FalseText is not required. A section break is not required. "Different first
page" is required. To recap:

Create the template. In the Footer, insert "Page { PAGE }." Then check the
box for "Different first page." In the First Page Footer, insert the field
above. All field delimiters (the things that look like braces but can't be
entered from the keyboard) must be inserted using Ctrl+F9 (though the Page
and NumPages fields can be inserted using the "Insert Page Number" and
"Insert Number of Pages" buttons on the Header and Footer toolbar).
 
C

Charles Kenyon

Hi Suzanne,

That is the code I gave, except with the null false text. It didn't work for
the poster. I tested it on my system and to my surprise, it didn't work. I
then tested what you have given, and it didn't work. With a blank space in
false text, it did work for me but not for the poster. No reason I can think
of.
 
S

Suzanne S. Barnhill

My experience with such fields is that they don't update automatically but
do work.
 
P

PMS

All - I still can't get it to work. FYI - the reason for
the section break is that I have a header that prints on
the second page. Thanks for your help!
 
C

Charles Kenyon

The section break is causing your problem. You may be putting the
information into the footer in the wrong section. You don't need the section
break to have a header that prints on the second page.

Take a look at: How to set up letterhead or some other document where you
want one header on the first page and a different header on other pages.
<URL: http://www.addbalance.com/word/headersfooters.htm> This gives
step-by-step instructions.




All - I still can't get it to work. FYI - the reason for
the section break is that I have a header that prints on
the second page. Thanks for your help!
 
P

PMS \(Paula\)

Okay. I took out the section break. The document is now
section-free. I made the first page a "Different First
Page". Put { IF { NUMPAGES } > 1 "Page { PAGE }" } in the
first page footer. Then I put the same statement in the
section 1 footer (second page). Merged the document as
two pages and the footer did not print on the first page
(I need it on the first page), but did on the second
page. When I merge it as one page, the footer does not
appear (this is the intent).
 
J

Jean-Guy Marcil

Bonjour,

Dans son message, < Charles Kenyon > écrivait :
In this message, < Charles Kenyon > wrote:

|| The problem is that the poster _wants_ the footer to appear on page one,
but
|| only if there is more than one page.
|| --

Another case of reading too fast!

Poster wrote, in a reply to your first suggestion,
<q>
This works for the 2 pages, but when the document is one
page, I still get the footer saying Page 1, which I don't
want. I am using this statement: { IF {NUMPAGES} >
<\q>

And I got stuck with that... forgot to cross check with the original post!
:-(

Sorry about that.
--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 
C

Charles Kenyon

Try doing it with
{ IF { NUMPAGES } > 1 "Page { PAGE }" " " }




Okay. I took out the section break. The document is now
section-free. I made the first page a "Different First
Page". Put { IF { NUMPAGES } > 1 "Page { PAGE }" } in the
first page footer. Then I put the same statement in the
section 1 footer (second page). Merged the document as
two pages and the footer did not print on the first page
(I need it on the first page), but did on the second
page. When I merge it as one page, the footer does not
appear (this is the intent).
 
S

Suzanne S. Barnhill

You don't want the IF field in the Footer. You just want "Page { PAGE } " in
the Footer, since it will never appear except when you have more than one
page. Are you updating fields after merging?



Okay. I took out the section break. The document is now
section-free. I made the first page a "Different First
Page". Put { IF { NUMPAGES } > 1 "Page { PAGE }" } in the
first page footer. Then I put the same statement in the
section 1 footer (second page). Merged the document as
two pages and the footer did not print on the first page
(I need it on the first page), but did on the second
page. When I merge it as one page, the footer does not
appear (this is the intent).
 
P

PMS \(Paula\)

Are you saying I don't need any IF field in either the
First Page Footer or the Section 1 Footer? I don't
understand how that will work. When the document is one
or two pages, page one is still a Different First Page,
so if the footer has no IF field, the page number will
always appear.
 
C

Charles Kenyon

She wants the footer to appear on the first page if there are multiple
pages. She does not want it to appear if there is only one page. She needs
an IF field.
 
C

Charles Kenyon

Hi Paula,

You do _not_ want your headers/footers set for different first page because
you want the same footer on page one, two, .... You just don't want it to
show up if you only have one page.


Are you saying I don't need any IF field in either the
First Page Footer or the Section 1 Footer? I don't
understand how that will work. When the document is one
or two pages, page one is still a Different First Page,
so if the footer has no IF field, the page number will
always appear.
 

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