numbering pages using VBA

L

lorex

I need to make the page numbering in a word document, but if the last page is
odd I have to put the actual page / actual page + 1.

And I need to customize the starting number.
 
C

Cindy M.

Hi =?Utf-8?B?bG9yZXg=?=,
I need to make the page numbering in a word document, but if the last page is
odd I have to put the actual page / actual page + 1.
You should be able to do this with a set of nested fields:

{ IF { =MOD({ NumPages }) } = 0 "{ NumPages }" "{ = { Numpages } + 1 }" }

Note that you must press Ctrl+F9 to insert the field bracket pairs { }. When you
done, press Alt+F9 to toggle the field codes off.
And I need to customize the starting number.
Insert/Page Number/Format

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or reply
in the newsgroup and not by e-mail :)
 

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