I have designed a form for others to capture data about clients. I want to be
able to make that client's name reappear in various fields througout the
document without having to re-type it each time. I can't remember how.
Hi Cheney,
>I have designed a form for others to capture data about clients. I want to be
>able to make that client's name reappear in various fields througout the
>document without having to re-type it each time. I can't remember how.
I'd define a docvariable,
set the docvariable's value
to the text of the textbox on textbox change,
update the fields,
and refresh the screen,
otherwise only the first change
of the textbox's changes will be seen.
Like this:
Private Sub TextBox1_Change()
With ActiveDocument
.Variables("Myname").Value = TextBox1.Text
.Fields.Update
End With
Application.ScreenRefresh
End Sub
HTH

Signature
Greetings from Bavaria, Germany
Helmut Weber, MVP WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
You can use a unique paragraph style and a STYLEREF field.
For more, see http://gregmaxey.mvps.org/Repeating_Data.htm.

Signature
Stefan Blom
Microsoft Word MVP
> I have designed a form for others to capture data about clients. I
> want to be
> able to make that client's name reappear in various fields througout
> the
> document without having to re-type it each time. I can't remember
> how.