Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word 2010 - Populate text fields based on other text fields 1

Status
Not open for further replies.

MattGreer

Technical User
Feb 19, 2004
471
US
I'm working on a template where I would like to enter certain information into a text field and have that information populate at various places in the document. I searched for some variation on that on the web but most information was based on a calculation. I'm not doing a numerical calculation. So, for example, the text may read:

[Person1] went to the store and bought some apples for [Person2]. [Person1] did not have enough cash, so he went to [BankName] to get some money. [Person2] was very pleased when [Person1] came home with some apples.

So, somewhere, I want to be able to enter the name for Person1, and have that populate throughout. Same for Person2, and BankName.

I realize that perhaps doing a search and replace would accomplish the same thing, but I'm curious if what I describe can be done in Word.

Thanks for your help!

Thanks!!


Matt
 
Hi,

What you need is a coded solution that's run from a UserForm, where you have the user enter each value, Person1, Person2, Bank name etc. and then do a find & replace for each.
 
No, it's nothing like a mailmerge. It's a form document, into which the OP wants the user to be able to enter some text in one location and have it replicate wherever else it's needed in the same document. There is no external data source and only once form is being completed at a time.

Cheers
Paul Edstein
[MS MVP - Word]
 
Skip said:
I resemble that remark!

Shouldn't that be: "I resent that remark" ? :)

Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top