Deleting page numbers from certain pages

P

Peeter

Is it possible to delete certain page numbers? I.e. How can I remove page
numbers e.g. from pages 2 and 50 without deleting other? I would really
appreciate if someone could help me.
 
S

Stefan Blom

One way is to use a conditional field in the footer (header).
Something like this should work:

{ IF { PAGE } = 2 "" { IF { PAGE } = 50 "" { PAGE } }

Note that each pair of field delimiters must be inserted with
Ctrl+F9; you can't just type them in.

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 
G

Graham Mayor

There appears to be a field delimiter missing from Stefan's version - which
I couldn't get to work. Although not strictly necessary with fields I much
prefer to use quotes to delimit the various parts of a conditional field as
it makes it much easier to see what is supposed to happen. In this instance:

{ IF { Page } = 2 "" "{ IF { Page } = 50 "" "{ Page }" }" }

will work.

To avoid the translation issues that occur when copying fields to text - see
http://www.gmayor.com/export_field.htm

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


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

Stefan Blom

in message
There appears to be a field delimiter missing from Stefan's
version - which
I couldn't get to work.

True. I see now that I left out the final }. Thanks for
pointing this out!
Although not strictly necessary with fields I much
prefer to use quotes to delimit the various parts of a conditional
field as
it makes it much easier to see what is supposed to happen. In this
instance:

{ IF { Page } = 2 "" "{ IF { Page } = 50 "" "{ Page }" }" }

will work.

To avoid the translation issues that occur when copying fields to
text - see
http://www.gmayor.com/export_field.htm

This indeed seems to be a useful link!
 
P

Patski107

Please forgive my ignorance, but where do I put this code if I want to
repress the page number? I have one page that I don't want the page number to
print.

thank you

Pat
 
S

Suzanne S. Barnhill

You put this field code wherever you would otherwise put the page number
(header or footer).
 
P

Patski107

So to supress page 121

{ IF { Page } = 121 "" "{ Page }" }

I tried this but it didn't work.
 
G

garfield-n-odie [MVP]

{ IF { PAGE } <> 121 { PAGE } }

Don't type the curly braces. Enter the curly braces by pressing
Ctrl+F9.
 
C

Charles Kenyon

Spaces can matter in calculation fields but I doubt it is the problem with
this field.
Try typing
IF "Page" = "121" "" "Page"
Then select each Page without the quotation marks and press Ctrl-F9. This
creates your two Page fields. Then select the entire thing and press
Ctrl-F9. This gives you the IF field. Then press F9 to update the field and
change it into a page number.
--
Charles Kenyon

Word New User FAQ & Web Directory: http://addbalance.com/word

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide) http://addbalance.com/usersguide


--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 
S

Suzanne S. Barnhill

Spaces can matter but shouldn't here. Keep in mind that what Word thinks is
page 121 may not agree with what you think is.
 
P

Patski107

I still can't get this to work. I did just what you told me and I still have
the page number.

Pat
 
S

Suzanne S. Barnhill

Try it this way:

1. In your header/footer, press Ctrl+F9. This will insert a pair of field
braces.

2. Type IF and a space.

3. Click on the "Insert Page Number" button to insert a { PAGE } field (you
may see a number displayed).

4. Type <> with spaces before and after.

5. Type 121 and a space.

6. Click the "Insert Page Number" button again to insert another PAGE field.

7. Press F9 to update the field.

You should have a page number on every page but 121. Note that 121 must be
the number that Word would print on that page if it printed it. That is, the
field will not work if the page is the 121st page in the document but is
also page 20 of section 5, with numbering restarted in each section, so that
20 is what Word would print if it printed a page number.
 
C

charlie hoying

I can't quite understand what you're saying. What exactly should I do if I
was trying to take away the page numbers for like pages 8 and 9 or something,
because I can't really understand what you're saying about conditional fields
and stuff.
 
D

Doug Robbins - Word MVP

{ IF { PAGE } < 8 { PAGE } {IF { PAGE } > 9 { PAGE } "" }

will cause pages 1 through 7 and those greater than nine to be numbered. If
you wanted physical page 10 to be numbered 8 with all following pages having
the next sequential number, then use:

{ IF { PAGE } < 8 { PAGE } {IF { PAGE } > 9 { = { PAGE } - 2 } "" }



--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 
B

Bonnie Mozingo

I was able to get the code to work but I cannot get the desired number format
to stick, I prefer Page x of y. Any suggestions?
 
D

Doug Robbins - Word MVP

Use:

{ IF { PAGE } = 2 "" { IF { PAGE } = 50 "" "{ PAGE } of { NUMPAGES }" }

assuming that you want pages 2 and 50 included in the page count.

If not, use:

{ IF { PAGE } = 2 "" { IF { PAGE } = 50 "" "{ PAGE } of { = { NUMPAGES } -
2 }" }


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.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