Hi Roderick,
Since you're using AutoText entries, I'd be inclined to insert these as
AutoText FIELDS. You should then be able to change the CODE property of
the field(s) in the appropriate ranges to display whichever you
want/need.
As a matter of fact, if this is always total-page-number based, you
could probably even manage with a IF field, and not VBA code at all.
along the lines of
{ AUTOTEXT { IF { Numpages } = 1 "NameOfEntry" "NameOfEntry" } }
> I have a template which consists of the first page with a "First Page
> Header". The second and subsequent pages, when they are used but which
[quoted text clipped - 67 lines]
> I'm sure that Ranges comes into play somewhere but I cannot find the
> right combination.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow question
or reply in the newsgroup and not by e-mail :-)
Roderick O'Regan - 27 Jan 2006 14:45 GMT
Thank you Cindy for your helpful ideas.
I'll try working with the AutoText fields angle.
In this case the IF field is not appropriate. However, there's
something there I learnt - how to use an IF statement with an AutoText
entry.
Thanks again for your help.
Roderick
>Hi Roderick,
>
[quoted text clipped - 88 lines]
>This reply is posted in the Newsgroup; please post any follow question
>or reply in the newsgroup and not by e-mail :-)