Create macro for a form letter to copy text from one field to multiple fields

A

Andrzej

I have created a form letter which contains several fields
that will show the same information. I'm trying to
simplify the form for the inputter by adding a macro which
would populate the other fields with the information typed
into the first form field. I've tried several commands but
none seems to work. Any ideas would be greatly
appreciated. Thank you!
 
C

Charles Kenyon

You don't need or want macros for this. Instead, use REF fields to replicate
the information in the first field. You don't indicate whether this is a
protected form. If it is, the formfields are automatically given a name
(which you can change). If you are using Fill-In fields you would need to
bookmark the result. This is a reason I prefer to use ASK fields; they
create a bookmarked result and you name the bookmark as a part of your ASK
field.

{ REF "BookmarkName" }

You can get this field by using Insert => Cross-Reference or Insert =>
Field. You can also type it after pressing the Ctrl-F9 key combination to
insert the field delimiters (which look like braces but are not).

REF fields need to be forced to update. This can be done in a protected form
by marking the source formfield to "calculate on exit." In other kinds of
forms it requires a macro to update the REF fields which you can call (or
you can do it by hand).
--
Check online forms in help. For more about online forms, follow the links at
<URL: http://www.addbalance.com/word/wordwebresources.htm#Forms> especially
Dian Chapman's series of articles.
--
For a rudimentary example of macros to update fields download the ASK and
FILLIN fields tutorial from <URL: http://addbalance.com/word/download.htm>

Hope this helps,
--
Charles Kenyon

Word New User FAQ & Web Directory:
<URL: http://www.addbalance.com/word/index.htm>

Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
<URL: http://www.addbalance.com/usersguide/index.htm>

Word Resources Page
<URL: http://www.addbalance.com/word/wordwebresources.htm>

See also the MVP FAQ: <URL: http://www.mvps.org/word/> which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top