View Single Post
  #5   Report Post  
Posted to microsoft.public.word.docmanagement
Suzanne S. Barnhill
 
Posts: n/a
Default Field Code: User entered data updates in header/footer

I agree with Stefan. This should be working provided you've used the default
(backward-looking) StyleRef field. I suspect that what has happened is that
you have inserted a page break after your title paragraph (the one you're
referencing) and then pressed Enter again to get a "blank line" at the top
of the next page. This creates an empty paragraph in the Title style, and
that's what your StyleRef field is picking up. Instead of using an empty
paragraph, add some Space Before to the first paragraph on the page; because
it follows a page break, it will be retained.

If this analysis is way off the mark, perhaps you'd like to send me a sample
document to look at.

--
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.

"Dave" wrote in message
...
I tried your suggestion on using the style ref method.
It isn't working.

The problem is that the header/footer is on the second page and the style

is
defined on the first and I have the headers/footers turned off for the

first
page.

If I add the styleref to the first page in the "First Page Footer"

section,
then it
works fine, but this is not the behavior I want. I want the header/footer
to show
the title on every page except the first.

Any thoughts?

Dave


"Suzanne S. Barnhill" wrote:

Possibly the easiest method (instead of a bookmark) would be to apply a
character style to the Project Name field code and use a StyleRef

field in
the header/footer. Alternatively, you could use a UserForm to collect

the
name and write it to a custom document property and use a DocProperty

field
in the header/footer. The advantage of StyleRef is that it updates
automatically and instantly, whereas fields can be balky about updating
(though fields in the header/footer are always updated at print time or

on
Print Preview).

--
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.

"Dave" wrote in message
...
I want to create a template/document that has
Document Name: Project Name
displayed by default where Project Name is a field code that can
the be updated by right clicking the mouse.

Upon doing so, it would prompt the user to enter the name of the

project
and then say
Document Name: My Wonderful Project

I want to have My Wonderful Project bookmarked so as to include it in

the
header/footer.

This was my last attempt

{ COMMENTS " Project Name " { { SET ProjectName { FILLIN "Input

Project
Name" \d " Project Name " }}}

Any help would be appreciated

Dave