Group:  Microsoft Word ยป microsoft.public.word.newusers
Thread: Footer on last page

Geek News

Footer on last page
"Jan Kronsell" <kronsell(nomorespam)[ at ]adslhome.dk> 10/31/2008 2:54:18 PM
I use these field codes to put a footer on my last page:

{ IF { PAGE \* MEGEFORMAT} = "{ = {NUMPAGES \* MERGEFORMAT} " "
{USERINITIALS \* MERGEFORMAT} / {FILENAME \*MERGEFORMAET} }


The problem is, that this does not work, if the page number of the last page
is different from the number of pages. That is, f i have an 10 page
document, starting with page 81, the last page is 90, but NUMPAGES is 10, so
it will not recognize the page as the last one.

Is there anway to do this automatically?

Jan


Re: Footer on last page
"Suzanne S. Barnhill" <sbarnhill[ at ]mvps.org> 10/31/2008 5:29:02 PM
You'll need to use, instead of NUMPAGES, a REF field referring to the page
number of a bookmark on the last page.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA

"Jan Kronsell" <kronsell(nomorespam)[ at ]adslhome.dk> wrote in message
news:uLmY9h2OJHA.1172[ at ]TK2MSFTNGP03.phx.gbl...
[Quoted Text]
>I use these field codes to put a footer on my last page:
>
> { IF { PAGE \* MEGEFORMAT} = "{ = {NUMPAGES \* MERGEFORMAT} " "
> {USERINITIALS \* MERGEFORMAT} / {FILENAME \*MERGEFORMAET} }
>
>
> The problem is, that this does not work, if the page number of the last
> page is different from the number of pages. That is, f i have an 10 page
> document, starting with page 81, the last page is 90, but NUMPAGES is 10,
> so it will not recognize the page as the last one.
>
> Is there anway to do this automatically?
>
> Jan
>
>


Re: Footer on last page
"Jan Kronsell" <kronsell(nomorespam)[ at ]adslhome.dk> 10/31/2008 11:10:19 PM
Thank you. didnt think of that.

Jan

Suzanne S. Barnhill wrote:
[Quoted Text]
> You'll need to use, instead of NUMPAGES, a REF field referring to the
> page number of a bookmark on the last page.
>
>
> "Jan Kronsell" <kronsell(nomorespam)[ at ]adslhome.dk> wrote in message
> news:uLmY9h2OJHA.1172[ at ]TK2MSFTNGP03.phx.gbl...
>> I use these field codes to put a footer on my last page:
>>
>> { IF { PAGE \* MEGEFORMAT} = "{ = {NUMPAGES \* MERGEFORMAT} " "
>> {USERINITIALS \* MERGEFORMAT} / {FILENAME \*MERGEFORMAET} }
>>
>>
>> The problem is, that this does not work, if the page number of the
>> last page is different from the number of pages. That is, f i have
>> an 10 page document, starting with page 81, the last page is 90, but
>> NUMPAGES is 10, so it will not recognize the page as the last one.
>>
>> Is there anway to do this automatically?
>>
>> Jan


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net