E
erik_gregory
I hope this message reaches Doug Robbins, Word MVP, but any help from anyone
else is welcome.
Some time ago I queried this NG about conditional headers/footers and the
need to have Word display "For Official Use Only" in the footer when there
was for official use only material (marked as (FOUO)) in the text.
The following is what Doug Robbins wrote, but I'm having difficulties with
this. When I follow these directions, the field in the footer simply displays
"STYLEREF". Also, when I have the AutoCorrect option enabled and type
(FOUO)--(which automatically converts the style of the target paragraph to
"Official")--Word inserts a line break, which I am hoping to eliminate.
Here is what Doug wrote and if you can answer the questions above, I'd be
grateful, REALLY grateful!
---Create a new character style. I called the one I used "Official". Now
type (FOUO) and select it and apply that style to it. Then with that
selected, from the Tools menu, select Autocorrect options and on the
AutoCorrect tab you should see (FOUO) in the "With::" section of the "Replace
as you type area". Click with the mouse on the "Formatted text" radio button
and in the "Replace:" section type fouo then click on add. Now in your
document, whenever you type fouo and press the space bar, it will be replaced
the (FOUO) formatted with the "Official" style. Now, in the footer, insert
the following field construction--{ IF {STYLEREF Official } = "(FOUO)" "FOR
OFFICIAL USE ONLY" "" }
Now on any page on which you do not want the "FOR OFFICIAL USE ONLY" to
appear, just select something and apply the Official style to it.
Hope this helps---
else is welcome.
Some time ago I queried this NG about conditional headers/footers and the
need to have Word display "For Official Use Only" in the footer when there
was for official use only material (marked as (FOUO)) in the text.
The following is what Doug Robbins wrote, but I'm having difficulties with
this. When I follow these directions, the field in the footer simply displays
"STYLEREF". Also, when I have the AutoCorrect option enabled and type
(FOUO)--(which automatically converts the style of the target paragraph to
"Official")--Word inserts a line break, which I am hoping to eliminate.
Here is what Doug wrote and if you can answer the questions above, I'd be
grateful, REALLY grateful!
---Create a new character style. I called the one I used "Official". Now
type (FOUO) and select it and apply that style to it. Then with that
selected, from the Tools menu, select Autocorrect options and on the
AutoCorrect tab you should see (FOUO) in the "With::" section of the "Replace
as you type area". Click with the mouse on the "Formatted text" radio button
and in the "Replace:" section type fouo then click on add. Now in your
document, whenever you type fouo and press the space bar, it will be replaced
the (FOUO) formatted with the "Official" style. Now, in the footer, insert
the following field construction--{ IF {STYLEREF Official } = "(FOUO)" "FOR
OFFICIAL USE ONLY" "" }
Now on any page on which you do not want the "FOR OFFICIAL USE ONLY" to
appear, just select something and apply the Official style to it.
Hope this helps---