For both your update requirements, you need to use a VBA macro that is named
in the "Run macro on Exit" field of the text form field properties.
The field in the second page needs to be a "REF" field that references the
name of the text form field you want to duplicate - e.g. ir it is Text1, you
need { REF Text1 } or { Text1 }
If you want, us the macro just posted to update all the fields in the
document
Sub UpdateAllFields()
Dim objRange As Word.Range
For Each objRange In ActiveDocument.StoryRanges
Do
objRange.Fields.Update
Set objRange = objRange.NextStoryRange
Loop Until objRange Is Nothing
Next
End Sub
or just update the ranges you need (you'll have to look at the Word
StoryRanges object for more info. on that). If you're unfamiliar with using
VBA macros, try Graham Mayor's page at
http://www.gmayor.com/installing_macro.htm
Peter Jamieson
"Anderflash" wrote in message
news
Well, I have a document with common text. I want the following:
- On the first line of the second page I want a text equals to the first
line of the first page. (This would be easy putting a bookmark - 'first'
for
example) and put on the second page {first}.
- I want that when I change the first line of the first page, this
automatically updates the first line of the second page, but the paragraph
above doesn't do this (I need to press F9).
- This can be solved transforming the first line of the first page in a
text
field from the Forms toolbar and checking 'Calculating on exit'. But if I
do
this, I need always to protect the document to update automatically the
second page. I'd like the update in a pure text, not in a textfield.
Is there a solution?