Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am creating a form in Word 2007, using the controls available in the Developer tab.

Developer toolbar

On my first page, I have the user enter a name into a text control. I want to have a control on the second page to automatically fill in with the same text as the first one.

Is there any way to link these controls together?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

You can do it using VBA:

  1. Give each textbox a name (in Design mode, right-click each of them and get properties and fill in the Name property)
  2. Right click the first text box and choose View Code
  3. Add the code at the bottom of this answer into the VBA editor (assuming you called the page 1 textbox Box1 and the page 2 textobx Box2)

Exit design mode and then type something into the textbox on page 1. You should see that the textbox on page2 has the same value.

Note that people who open the form have to have their security settings set to enable the running of macros for this to work.

Private Sub Box1_Change()
    Box2.Value = Box1.Value
End Sub
share|improve this answer

Word makes this maddeningly complicated.

When trying to do this myself, I found and followed this tutorial to great success: http://www.johnchapman.name/using-content-controls-to-repeat-form-fields-in-microsoft-word-2007-and-word-2010/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.