IF fields and headers

C

Chip Orange

We have a need to show the word "revised" as the header of any page of a
long document which is revised. I could setup, and get the users to use, a
special style on the text when it is "revised", and so I was then looking
for a way to use the IF field to test for the presence of this style on the
current page (using the predefined \page bookmark perhaps).

I can't seem to find a function that you can use like that, so does anyone
have any ideas as to how we might do this without artifitially dividing the
document up into sections each time it's revised, and editing the headers
manually? It's kind of hard to do anyway as the revised text sometimes
falls near page boundaries.

thanks.

Chip
 
J

Jezebel

It won't like that. No, there's no field that will display conditionally
based on the occurrence of a style on a page; and worse, if you had such a
field in your header the text would display on every page of the section.

Here's an alternative --

Add your "revised" manually to one page, using a textbox with absolute
positioning (ie relative to the page, not relative to the anchor paragraph).
Select the textbox and define it as an AutoText Entry.

When you've finished working on your document, search for each paragraph
with the Revised style (or just use search for changes if you have Track
Changes enabled). Attach the AutoText entry to the first changed revised
paragraph on each page.
 
C

Chip Orange

Thanks; this sounds like it's workable, so I'll look into it.

I'm not sure you're correct when you say if I could have made my original
idea work, then it would print on every page of the section. It must
re-evaluate the header expression on a page-by-page basis, else how could
you achieve something like "page 1 of 10" types of headers or footers. That
re-evaluation was what I was hoping to use.

Chip
 
M

macropod

Hi Chip,

If you use a numbered heading style and give it the numbered format for just
the revised paragraphs, a field like the following in the header would work:
{IF{STYLEREF "Heading 2" \n}> 0 Revised}

Paragraphs in the chosen style must appear on every page, otherwise pages
without it will return a 'revised' result regardless.

The issue then remains: what to do about the numbers. If you don't want them
to be displayed in printed copies, format the style so that the number is in
a hidden font, with nothing following the number.

Cheers
 
C

Chip Orange

I appreciate the response very much, but I'm afraid I just can't follow what
you're doing (I'm fairly new to Word).

I don't recognize the syntax of the IF statement you've used, and I'm not
sure what's meant by "numbered heading style". Also, if anything has to be
done to *every* page, then it's not going to be a practical method for our
attorneys, who must take say a 100 page document, and indicate where a line
or two changed, and then reprint having the header of that page where those
lines happen to fall have a page header that indicates "revised". Having
them do something to all other pages as well just won't be practical.

thanks anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top