Hi JeLa,
You could add a macro to the document to either:
. test the formfield for the presence of a carriage return and, if found, delete it; or
. make the enter key take you to the next formfield (as happens with the tab).
The following macro will remove the carriage returns from all data entry formfields in the document. You could call it from each
formfield as an on-exit macro, or from just one formfield (eg the last formfield to be filled in). Alternatively, you could
intercept the document save/print routines.
Sub FFClean_Up()
Dim FrmFld FormField
For Each FrmFld In ActiveDocument.FormFields
If FrmFld.Type = wdFieldFormTextInput Then FrmFld.Result = Replace(FrmFld.Result, vbCr, "")
Next
End Sub
You could also modify the code so that it removes the enter keys from nominated formfields only.
To see how to make the enter key behave like the tab key, go to:
http://support.microsoft.com/default.aspx/kb/211219
Cheers
--
macropod
[MVP - Microsoft Word]
-------------------------
I a form is to possible to NOT allow multi-line input?
As it is, a person CAN hit the return-key, even if you've specified a
limited number of characters.
If the return-key is hit, a 2nd line will appear, but it's not visible
(if the row has a exact height, which is the case here).