Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / August 2006

Tip: Looking for answers? Try searching our database.

numbering pages using VBA

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
lorex - 14 Aug 2006 22:30 GMT
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.
Cindy M. - 18 Aug 2006 10:37 GMT
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 :-)
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.