Results 1 to 7 of 7
  1. #1
    2 Star Lounger
    Join Date
    May 2002
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Field Codes (Word 2000)

    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

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Field Codes (Word 2000)

    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.

  3. #3
    2 Star Lounger
    Join Date
    May 2002
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Field Codes (Word 2000)

    That works perfect. Thank you so much..Susan

  4. #4
    2 Star Lounger
    Join Date
    May 2002
    Posts
    121
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Field Codes (Word 2000)

    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

  5. #5
    4 Star Lounger
    Join Date
    Dec 2003
    Location
    Zoetermeer, Zuid-Holland, Netherlands
    Posts
    559
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Field Codes (Word 2000)

    As you probably have guessed already, "Selectievakje" is Dutch for "CheckBox".
    You always learn something in the Lounge! <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Field Codes (Word 2000)

    Oops! Thanks, Jan! <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Field Codes (Word 2000)

    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.Va lue = _
    ActiveDocument.FormFields("CheckBox1").CheckBox.Va lue
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •