• UserName Field

    Author
    Topic
    #1767385

    I have a merge document I would like to distribute to a group of users. I want it to pick up the user’s name as registered in Office. I inserted the UserName fiels in a text box and my name appeared. When I sent the document to a co-worker, my name persisted in the text box. What am I doing wrong?

    Viewing 0 reply threads
    Author
    Replies
    • #1774680

      The user has to update the field. She can do this manually (right click on the field, then click Update Field) but that’s a pain. Remember, though, that the UserName field only works if the User Information is filled in.

      Anyway, you might want to consider a little VBA code in the document open event:

      Activedocument.Fields.Update

      Note: this updates the fields in the Main Story (not headers, footers, etc)

      • #1774949

        Thanks, can you give me a little more help on installing this code?

        • #1774966

          1. Open the template that you wish to attach to the document. It’s best if you have a special template for all these forms.
          2. Press Alt+F8 (opens macro dialog box)
          3. For a name, use AutoOpen.
          4. Press the button create.
          5. Paste in the command (the Public Sub & End Sub are already there).
          6. Save the template.

          Hope this helps.

    Viewing 0 reply threads
    Reply To: UserName Field

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

    Your information: