• Field Codes (Word 2000)

    Author
    Topic
    #426676

    Is there a way to insert and name field codes in a word document? What I would like to do is create a form and have the same field code in several places. Then when the user types in name in one field, it replicates in any other name field in the document. For example. Susan would be the name field. Then if you type the first name field Susan, it would appear in all the susan fields required.

    Thanks..Susan

    Viewing 0 reply threads
    Author
    Replies
    • #986694

      You can use a text form field from the Forms toolbar to let the user enter a name. Double click the form field (while the document is unprotected). You can view and edit the name of the bookmark associated with the form field, let’s say you name it FirstName. Also tick the check box labeled “Calculate on exit”.

      You can insert cross references to this bookmark in other places in the document, by selecting Insert | Cross-reference…

      When you protect the document for forms (Tools | Protect Document…), you can enter a name in the text form field. As soon as you leave the form field, for example by pressing the Tab key, the references to the form field will be updated automatically.

      • #986712

        That works perfect. Thank you so much..Susan

      • #986839

        I have one more question. This works great for text and dropboxes; however, I can’t seem to get check boxes to work. Is there a way to duplicate check boxes?

        Thanks..Susan

        • #986922

          As you probably have guessed already, “Selectievakje” is Dutch for “CheckBox”.
          You always learn something in the Lounge! smile

        • #986843

          Edited by HansV – originally forgot to replace Dutch names Selectievakje1 and Selectievakje2 with CheckBox1 and CheckBox2 – thanks to JanB for pointing out my error!

          You need VBA code for this. Let’s say you have form check boxes Checkbox1 and Checkbox2, and you want Checkbox2 to display the same state (checked or clear) as Checkbox1.
          Create a macro like this:

          Sub UpdateCheckBox2()
          ActiveDocument.FormFields(“CheckBox2”).CheckBox.Value = _
          ActiveDocument.FormFields(“CheckBox1”).CheckBox.Value
          End Sub

          Double click Checkbox1 (while the document is unprotected) and select UpdateCheckbox2 in the Exit dropdown list (in the section labeled “Run macro on”).
          Click OK.
          When you protect the document, the macro will be run each time the user leaves the check box.

    Viewing 0 reply threads
    Reply To: Field Codes (Word 2000)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: