View Single Post
  #4  
Old October 14th, 2005, 03:58 AM
Suzanne S. Barnhill
external usenet poster
 
Posts: n/a
Default Using Forms in header and footer (or linking file properties)

A couple of follow up questions. If I created a custom file property
called "CO NUMBER", is there a way to create the field without going to
InsertField ? Can I just type the following?

DOCPROPERTY "CO NUMBER" \* Upper


You can insert any field manually if you know what the syntax of the field
is. Press Ctrl+F9 to insert the field delimiters and then type the text
between them. Updating of fields is always a problem in protected forms.
Usually a macro of some sort is required (but don't ask me about about
that!).

I've ready the help about StyleRef fields and I'm unclear what they are
used for and if I want to use them. Could you elaborate...


I'm preparing an article on this and other uses of StyleRef fields, but it
won't be published for a few days, so here's a summary. You can use a
StyleRef field to pick up text in any given style and repeat it elsewhere on
the page (the header or footer is the usual location). The style referenced
can be either a paragraph or a character style. A character style doesn't
have to differ from the default paragraph font in anything but name; you can
apply a character style that does not change the appearance of the text at
all, just marks text to be picked up by the StyleRef field.

So if the data you want in the header appears anywhere on the page (for
example, if it will be entered in a form field), you can apply a specific
style to that form field and put a StyleRef field in the header to pick up
that style. The text will appear in the header on every subsequent page
until the field detects other text formatted with the referenced style.
Obviously, if you want the text to appear on *every* page, you'll need to
have the form field that provides it on the first page of the form.

--
Suzanne S. Barnhill
Microsoft MVP (Word)
Words into Type
Fairhope, Alabama USA
Word MVP FAQ site: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

"eagle" wrote in message
...
"Suzanne S. Barnhill" wrote in
:

DocProperty fields can be inserted in the header/footer. Form fields
cannot, and REF fields don't work in the header/footer of protected
forms (but StyleRef fields do, and they update automatically).


A couple of follow up questions. If I created a custom file property
called "CO NUMBER", is there a way to create the field without going to
InsertField ? Can I just type the following?

DOCPROPERTY "CO NUMBER" \* Upper

When I save the DocProperty don't update? How do I update the whole
document?

I've ready the help about StyleRef fields and I'm unclear what they are
used for and if I want to use them. Could you elaborate...