Consulting

Results 1 to 3 of 3

Thread: Increasing the size of default text in a form field

  1. #1
    VBAX Regular
    Joined
    Nov 2004
    Posts
    74
    Location

    Increasing the size of default text in a form field

    Hello everyone,

    The other day Dreamboat helped me out with a problem I was having involving user form fields.

    I currently have a letter with a form field, which is the only assessable area of the document. I would like to add a default text, which will just need to be tweaked for each individual use. Now this has presented another problem! The default text spans over 10 lines and has spaces (line returns). The form field only seems to want to remember the first line of text.


    Does anyone know how to increase the size of default text in form fields?

    Thank you

  2. #2
    VBAX Master TonyJollans's Avatar
    Joined
    May 2004
    Location
    Norfolk, England
    Posts
    2,291
    Location
    Hi newk,

    I don't think this is possible through the GUI, but in code ..

    [VBA]ActiveDocument.FormFields("Text1").TextInput.EditType Type:=wdRegularText, _
    Default:="First Line" & vbNewLine & "Second Line"[/VBA]
    Enjoy,
    Tony

    ---------------------------------------------------------------
    Give a man a fish and he'll eat for a day.
    Teach him how to fish and he'll sit in a boat and drink beer all day.

    I'm (slowly) building my own site: www.WordArticles.com

  3. #3
    VBAX Regular
    Joined
    Nov 2004
    Posts
    74
    Location
    Thanks Tony,

    Thats very cool!

Posting Permissions

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