Repeating Date into footer

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have been trying to use a bookmark to copy the date of a meeting at the
start of a document and repeat this in the footer of the pages of the same
document. I can repeat the date throughout the body of the document but it
doesn't update in the footer unless I unprotect the document go to the footer
and then update the field. I thought that a macro might do it but you can't
record a macro with the form protected, so it all seems a bit laborious.
 
Unprotect the document, apply a unique character style to the form field
where the date is entered, and insert a STYLEREF field into the footer.
Then re-protect the document. The STYLEREF field updates correctly even
in a protected document.

The syntax of the STYLEREF field is: { STYLEREF "stylename_here" }
To insert the field, you can press Ctrl+F9; Word inserts the field
delimiters, {}. Type the code between them. Press F9 to update. Use
Alt+F9 to show/hide field codes.

--
Stefan Blom
Microsoft Word MVP


in message
news:[email protected]...
 
You run another macro to unprotect, then run the update macro. Then
reprotect with another macro.
 
Create a character style based on and with the same attributes used to
format your date field and apply that style to the date field. Use a
Styleref field to call that style in the header ( which will update
automatically).

Alternatively run an update macro on exit from the form field to update the
REF field in the header - you could use the example code at
http://www.gmayor.com/installing_macro.htm

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
You shouldn't need to unprotect - run it on exit from the date field (or a
later field).

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP

My web site www.gmayor.com

<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 

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

Back
Top