Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / November 2006

Tip: Looking for answers? Try searching our database.

How tomake a name entered in a form reappear on form without retyp

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cheney - 17 Nov 2006 12:42 GMT
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.
Helmut Weber - 17 Nov 2006 13:03 GMT
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"

Stefan Blom - 20 Nov 2006 13:04 GMT
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.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.