Copy value of a text filed

  • Thread starter Thread starter Ángel Rubio
  • Start date Start date
Á

Ángel Rubio

Hi.

In a Form, I have several text fields, so I would like to type text in one
field, and make a macro and assign a event in the properties of the text
field, and when the field lost the focus, in another text field the same
value appears.

I know how to assign the macro, but I don't know how to 'copy' in VB the
valules of the fileds.

Some help will be aprreciated.
 
You don't need a macro to repeat the value of a field elsewhere in the
document (if that's what you're trying to do).

Assuming that you are working with what Word calls an online form, you can
insert a cross-reference to the bookmark defined by the text form field in
question. Be sure to select "Calculate on exit" in the Text Form Field
Options dialog box (in that dialog box, you can also see the bookmark name
and change it if you want to). For more on repeating data using form fields,
see item 2 in the article at http://gregmaxey.mvps.org/Repeating_Data.htm.

Note that the article also explains other ways to repeat data.
 
Thanks for your help ! !

Muchísimas gracias por tu ayuda ! !



Stefan Blom said:
You don't need a macro to repeat the value of a field elsewhere in the
document (if that's what you're trying to do).

Assuming that you are working with what Word calls an online form, you can
insert a cross-reference to the bookmark defined by the text form field in
question. Be sure to select "Calculate on exit" in the Text Form Field
Options dialog box (in that dialog box, you can also see the bookmark name
and change it if you want to). For more on repeating data using form
fields, see item 2 in the article at
http://gregmaxey.mvps.org/Repeating_Data.htm.

Note that the article also explains other ways to repeat data.
 
You are welcome--and thank you for the feedback.

--
Stefan Blom
Microsoft Word MVP



Ángel Rubio said:
Thanks for your help ! !

Muchísimas gracias por tu ayuda ! !
 

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

Back
Top