Question on formulating Page no.

J

Jack Ling

Hi,


I am using MS Word XP. I want to include page nos. at the
footer for all BUT the last page.

So, I tried to put in the following formula from INSERT -
FUNCTIONS -> (choose IF, and type at the formula box) :

IF {PAGE}={NUMPAGES} "" "Page " & {PAGE} & " of " &
{NUMPAGES}

But the result is unexpected: it just shows up the "Page"


best regards,
jack ling
 
L

Leigh

Hi Jack,

From experience I would be in a section break after the
second last page, and then on the last page when putting
in your footer delete the number and it shouldn't delete
the rest.

Hope it works
 
R

Robert M. Franz (RMF)

Hi Jack,

Leigh wrote:
[..]
From experience I would be in a section break after the
second last page, and then on the last page when putting
in your footer delete the number and it shouldn't delete
the rest.

you can work with a section break here, but it isn't really necessary
....
-----Original Message----- [..]
I am using MS Word XP. I want to include page nos. at the
footer for all BUT the last page.

So, I tried to put in the following formula from INSERT -
FUNCTIONS -> (choose IF, and type at the formula box) :

IF {PAGE}={NUMPAGES} "" "Page " & {PAGE} & " of " &
{NUMPAGES}

But the result is unexpected: it just shows up the "Page"

not unexpected: the moment you close the "" after Page, the else-branch
seems closed.

No need to "string-concatenate" what you want in the header, just append
all in one string:

{ IF { PAGE }={ NUMPAGES } "" "Page { PAGE } of { NUMPAGES }" }

Greetinx
..bob
...Word-MVP
 
J

JACK LING

Hi Leigh,

thanks for Leigh's reply.

The break-into-section would solve the issue. But we have
tried and found that we encountered another issue using
this approach : when we print the whole document at one
go it is ok but there are cases we need to print/re-print
part of the document -> if we choose print ,e.g. page
3,4, the footer doesn't come correctly. We have to print
once for page 3 (the current page) then go to page 4 and
print current page again then it seems ok.

thanks for Robert's answer as well.

However, I can't put in the whole formula. When I put in
the { before IF, the window's OK button already grey out.

{ IF { PAGE }={ NUMPAGES } "" "Page { PAGE } of {
NUMPAGES }" }

Or I was at the wrong place to put in the formula? I went
into INSERT -> FUNCTIONS -> CHOOSE IF -> THEN TYPE IN THE
FORMULA BOX -> CLIKC OK.

Without the outer { } signs for the given formula, the
result just shows "PAGE"

your help is much appreciated.
thanks again,
jack ling
 
R

Robert M. Franz (RMF)

Hi Jack,

JACK LING wrote:
[..]
The break-into-section would solve the issue. But we have
tried and found that we encountered another issue using
this approach : when we print the whole document at one
go it is ok but there are cases we need to print/re-print
part of the document -> if we choose print ,e.g. page
3,4, the footer doesn't come correctly. We have to print
once for page 3 (the current page) then go to page 4 and
print current page again then it seems ok.

look in Word's help under Print sections, pages, etc. You have to
specify section and page range together ...

However, I can't put in the whole formula. When I put in
the { before IF, the window's OK button already grey out.

{ IF { PAGE }={ NUMPAGES } "" "Page { PAGE } of {
NUMPAGES }" }

Or I was at the wrong place to put in the formula? I went
into INSERT -> FUNCTIONS -> CHOOSE IF -> THEN TYPE IN THE
FORMULA BOX -> CLIKC OK.

Ahh, you are there... Yes, I usually use the "direct approach" in the
text layer. Simply hit CTRL F9 for each pair of field brackets and write
the rest by hand, that's usually faster (for a simple field) and simpler
(for complex ones).

Greetinx
..bob
...Word-MVP
 

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