How to Make Page No dissapear if there is only one Page

A

Akhil

Hi,

Is there a way in MS Word 2003 and 2007 for making the page number display
only if there is more than one pages.

ie. the moment the pages become 2 the page number should appear and the
moment the page number become 1 the page number should dissapear.

Please help me out of this

Regards,
Akhil
 
G

Graham Mayor

You could use a conditional field combination in the header/footer

{IF {Numpages} > 1 {Page}}

It will work in any version
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
P

Peter T. Daniels

You could use "Different First Page" headers and put the page number
only in the regular-pages header. (You have to temporarily cause your
template to have more than one page in order to access the second
header, but you can then remove the second page and the header
property will remain.)
 
A

Akhil

Thanks Mayor,


Can you please elaborate....

I tried entering the string "IF {NUMPAGES} > 1 {PAGE}" in the field, and
updated the field. But nothing hapens.. just blank.


Regard,
Akhil
 
G

Graham Mayor

These are fields. You must enter the curly brackets as pairs with CTRL+F9
{ IF {NUMPAGES} > 1 {PAGE}}
You cannot simply copy and paste or type them from the keyboard
You would enter CTRL+F9
{}
In between the brackets type IF CTRL+F9
{IF {}}
In between the new brackets type NUMPAGES
{IF {NUMPAGES}}
etc ...
--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
S

Suzanne S. Barnhill

Also, you would expect to see nothing if the document is only one page long.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
http://word.mvps.org
 
A

Akhil

Thanks Mayor,

Worked really fine.. :) one more thing is there a way i can concatinate 2
items in the field... What i want is like {PAGE} ({NOOFPAGES}) so that the
text will appear as 1(2) if there are two pages..

Thanks a lot for helping..

Thanks & Regards,
Akhil
 
A

Akhil

Thanks a looottt for all those who helped me....

Thanks a lot Mayor..

i created 4 fields one for the Page number, one for "(" , one for No of
pages and the last for ")" and got the exat what i need.... 2(4) :)

Thanks & regards,
Akhil
 
G

Graham Mayor

You need:
{IF {NUMPAGES} > 1 "{PAGE}({NUMPAGES})" }

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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