Consulting

Results 1 to 6 of 6

Thread: Text Form Field

  1. #1
    VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location

    Text Form Field

    Does anyone know how to add a text form field to a word document? I need to add one to a letter. I tried to add one to the attached letter but it goes away when I try to type. Any help would be appreciated.
    Peace of mind is found in some of the strangest places.

  2. #2
    VBAX Regular mvesaas's Avatar
    Joined
    Aug 2005
    Location
    Minneapolis, MN
    Posts
    24
    Location

    Arrow

    Hi,

    Well what are you trying to do with the Form Field?

    If you would just like it to stay there as a place holder, but have text in it to begin with, you can double click on it, and type in text where it says: default text. Then, click OK, and you should see your text IN the form field.

  3. #3
    VBAX Master austenr's Avatar
    Joined
    Sep 2004
    Location
    Maine
    Posts
    2,033
    Location
    What i was hoping for was for it to stay highlighted until text is typen in the field. Also, everytime you open the file, all form fields would be highlighted so user know where to enter required information.
    Peace of mind is found in some of the strangest places.

  4. #4
    VBAX Regular mvesaas's Avatar
    Joined
    Aug 2005
    Location
    Minneapolis, MN
    Posts
    24
    Location

    Arrow

    This may be as simple as setting up your view options for Forms correctly.

    Make sure that you have your FORMS toolbar on. (View-Toolbars-Forms)

    Then make sure that the small icon on the forms toolbar "a" is chosen. This is the toggle key for being able to see the formfields.

    You could write a macro to toggle the "form field shading" option.
    This is the code to either turn on/off the form field shading.

    [VBA] ActiveDocument.FormFields.Shaded = Not ActiveDocument.FormFields.Shaded


    [/VBA]

  5. #5
    VBAX Wizard
    Joined
    May 2004
    Posts
    6,713
    Location
    If a document is set up properly with formfields, then there is NO issue with where to enter information. The user can only enter information into the formfields.

    The document you posted did not have any formfields in it.

    As mentioned, you can have all formfields shaded. The user would see all the formfields, and could only move between them.

    Could you restate your problem?

  6. #6
    Administrator
    VP-Knowledge Base
    VBAX Guru MOS MASTER's Avatar
    Joined
    Apr 2005
    Location
    Breda, The Netherlands
    Posts
    3,281
    Location
    Austen you should protect the document for forms to use the formfields as inputs.

    Otherwise you type over them just like you say.

    You could also use a Blank Macro button that would disappear after you click and type on it.

    With a field code like:

    { MACROBUTTON NOMACRO <Click and type> } (Use CTRL+F9 to start the field hooks)

    Go to Tools | Options | View | Fieldshading choose Always.

    That should get you sorted.
    _________
    Groetjes,

    Joost Verdaasdonk
    M.O.S. Master

    Mark your thread solved, when it has been, by hitting the Thread Tools dropdown at the top of the thread.
    (I don't answer questions asked through E-mail or PM's)

Posting Permissions

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