Hi =?Utf-8?B?YnJpdGJyZXo=?=,
No, there's not. If you look at the available switches for this field (go to
the Word Help and search on StyleRef field) you'll see that the best you can
do is to change the search direction. But there's no way to limit the range
that's searched, nor to tell the field to not pick up anything.
You'd need to handle the header/footer content programmatically (using a
written macro).
> In my template, I have headers that reference the Heading 1 and Heading2
> styles on each page. When I have a Heading1 paragraph and no Heading2 on a
[quoted text clipped - 3 lines]
> coding that tells the reference not to include the Heading2 style reference
> if there is not a Heading2 paragraph in that section/page?
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 :-)