Footer on every 5th page

F

Flip

Hi all,
Is there a way to put something in the footer every 5 pages.
I would like to build a mix with different things throughout a rather big
document.
Example
Starting at page 2, display the pagenumber every 5th folowing page
Starting at page 3, display the filename every 5th folowing page.
Starting at page 4, display companyname every 5th folowing page

I know about using fields {}, the problem is to find a formula to find the
pages. Not specificly every 5 pages. May be any number.

Flip
 
S

Suzanne S. Barnhill

You can use the MOD formula function for this, in combination with an IF
field. Test the page number to see if it is evenly divisible by 5 (or
whatever number you've chosen) or if the remainder is a specific amount, and
insert a PAGE field (or the FILENAME or other document property)
accordingly.

For example, to insert a PAGE field (page number) on pages 5, 10, etc., you
would use this field:

{ IF { = MOD ({ PAGE }, 5) } = 0 { PAGE } }

To display the filename on pages 1, 6, 11, etc.

{ IF { = MOD ({ PAGE }, 5) } = 1 { FILENAME} }

To omit the field on page 1, you could use "Different first page" and omit
the field from the First Page Footer.

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

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