Word 2003 & Conditional Page Numbering in Template...

B

Birmangirl

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
 
S

Stefan Blom

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.

--
Stefan Blom
Microsoft Word MVP


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

Jonathan West

Birmangirl said:
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.

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.


--
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
 
B

Birmangirl

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
 

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