Last page footer needed

M

Mike Warburton

Hi,

I've got a two page template with a different first page
header and footer. I need to put in a footer which will
appear on the last page of all documents based on this
template. I can't use sections because the template is
only two pages - the documents which will be produced can
be any number of pages. I've tried a field but the only
way that will work is using autotext and I can't do that
as an unknown number of machines will use the template.

To complicate matters even further, I need to preserve two
images and a bookmark in the footer.

If its any use, I'm producing documents using this
template in a Visual Basic 6 application.

Thanks in advance,

Mike
 
M

Mark Tangard

Mike,

The number of machines using the template shouldn't affect
whether fields with AutoText would work; you just store the
AutoText in that template. What happens when you do that?
 
M

Mike Warburton

I tried that last week (I think I've tried everything!)
using a field like:

IF {PAGE} = {NUM_PAGES} {AUTOTEXT TempFooter}

I don't know what went wrong, but all I got when I
produced the documents was the name of the autotext. I
also got an error that the bookmark was missing when I was
reating the documents.
 
J

jesse

Please don't multi-post. The answers to your questions
were answered in your previous.

jesse
 
M

Mark Tangard

Mike,

This works when I try it:

{ IF { PAGE } = { NUMPAGES } { AUTOTEXT TempFooter } }

although it can get a little tricky if the graphic part
of the AutoText is loating rather than inline.

However, part of the problem may be that a bookmark in
an AutoText in a footer behaves oddly if the footer isn't
a unique sort (like a first-page footer). And that's
probably because, in theory -- even though in this case
the IF field only lets it happen once -- the footer is
showing up on each page, so the bookmark can't be unique.
I get bizarre behavior from bookmarks within an AutoText
in a footer; they move or vanish without much pattern.
What's the purpose of the bookmark in the AutoText?
Maybe there's another way to do what you're using it for.

--
Mark Tangard <[email protected]>, Microsoft Word MVP
Please reply ONLY to the newsgroup, not by private email.
Note well: MVPs do not work for Microsoft.
"Life is nothing if you're not obsessed." --John Waters
 
Top