Re: Macro which will run if doc goes to more than one page

Tech-Archive recommends: Fix windows errors by optimizing your registry



On Aug 17, 4:09 pm, "Graham Mayor" <gma...@xxxxxxxxxxxxxxxxxx> wrote:
Sorry - I did make a typo but it was in my reply to you, I didn't put
that in my code. Here's the code I'm using (updated to your third
suggestion:

{IF {PAGE} < {NUMPAGES} "IF {NUMPAGES} > 1 "Continued over the
page...."}"}

This shows the text Continued on my footer (I want it to show nothing
if there is only one page) and when I create page 2 it still shows
this text. I must be missing somthing!

You are a bracket short

{ IF { PAGE } < { NUMPAGES } "{ IF { NUMPAGES } > 1 "Continued over the
page...." }" }

If that too was a typo and your document contains only one page, then
nothing should appear in the footer. Nor should it appear in the footer of
the last page.

If you have tested this by inserting text to spill over to the second page
then removed the text leaving the entry on the first page. Switch to print
preview and back to update the field.

It should update automatically as the text spills over to the second page.

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>

I added the bracket and now I get this .... help
Error! Missing second part of test condition.

.



Relevant Pages