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.

Word 2003 & Conditional Page Numbering in Template...

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Birmangirl - 17 Aug 2006 10:14 GMT
I have created a single-page letter template that currently has a footer,
displaying the file/pathname.
I'd also like to incorporate conditional page numbering in the footer
(probably within a table) so that if the letter is two pages or more in
length, then the second and subsequent pages display the "real" Page X of Y.
I know I'll need to use fields etc, but just can't seem to work out the
correct formula.
Any help gratefully received.
TIA
Amanda
Stefan Blom - 17 Aug 2006 10:32 GMT
Try the following field:

{ IF { PAGE } < 2 "{ PAGE }" "Page { PAGE } of { NUMPAGES }"  }

Note: To insert each pair of field delimiters, {}, press Ctrl+F9. Type
the field code as shown. Press F9 to update the field and display the
result.

Signature

Stefan Blom
Microsoft Word MVP

> I have created a single-page letter template that currently has a footer,
> displaying the file/pathname.
[quoted text clipped - 6 lines]
> TIA
> Amanda
Jonathan West - 17 Aug 2006 10:50 GMT
>I have created a single-page letter template that currently has a footer,
> displaying the file/pathname.
[quoted text clipped - 4 lines]
> I know I'll need to use fields etc, but just can't seem to work out the
> correct formula.

You don't actually *know* anything of the kind...

Go to File, Page Setup. Click the Layout tab on the dialog, and check the
"Different first page" box.

Now your document has a separate header and footer just for the first page.
Insert a manual page break, and then insert your page numbers into the
footer of the second page.

Then delete the manual page break. The page numbers will now only appear if
the document grows to more than one page.

Signature

Regards
Jonathan West - Word MVP
www.intelligentdocuments.co.uk
Please reply to the newsgroup
Keep your VBA code safe, sign the ClassicVB petition www.classicvb.org

Birmangirl - 17 Aug 2006 12:20 GMT
Thanks for providing a solution that worked nicely.

My abject apologies for appearing to *know* more than I obviously do - I'll
be more careful with my wording in future...

Amanda

> >I have created a single-page letter template that currently has a footer,
> > displaying the file/pathname.
[quoted text clipped - 16 lines]
> Then delete the manual page break. The page numbers will now only appear if
> the document grows to more than one page.
 
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.