Results 1 to 2 of 2
2008-08-07, 01:38 #1
- Join Date
- Apr 2008
- Thanked 0 Times in 0 Posts
MS word link form fields in footer (Word 2000)
I have linked form fields within a template before using the text form field option box and the ctrl F9 key. I now need to have a date that I type in a text box within a document also populate in the footer of that document. I have tried code, Public Sub RefreshheaderFooterStyleReffields() Application.ScreenRefreshEnd Sub, which I found on this sight but I'm obviously doing something wrong as it is not working. Any ideas? and the person I have to pass this off to needs it to be as simple as possible.
2008-08-07, 01:55 #2
- Join Date
- Mar 2002
- Thanked 28 Times in 28 Posts
Re: MS word link form fields in footer (Word 2000)
Welcome to Woody's Lounge!
I assume that you have a field in the footer that refers to the bookmark name of the date form field.
You could create the following macro in the document:
Dim sec As Section
Dim ftr As HeaderFooter
For Each sec In ActiveDocument.Sections
For Each ftr In sec.Footers
If ftr.Exists Then
While the document is unprotected, double-click the date text form field, and select UpdateFieldsInFooter from the On Exit dropdown list, then click OK.