PDA

View Full Version : Increasing the size of default text in a form field



newk
03-07-2005, 02:57 AM
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

TonyJollans
03-07-2005, 03:44 AM
Hi newk,

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

ActiveDocument.FormFields("Text1").TextInput.EditType Type:=wdRegularText, _
Default:="First Line" & vbNewLine & "Second Line"

newk
03-07-2005, 04:04 AM
Thanks Tony,

Thats very cool!