Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2008

Tip: Looking for answers? Try searching our database.

Prevent line feed in a text form field

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Magnus - 01 Feb 2008 12:50 GMT
Hi,

I have a protected form with text form fields. The problem is that if the
user isin the field and press enter, everything below this point is moving
down. I thought the form functionaliy should keep the same look of the form.
So I think that the field should not respond at all when pressing enter. How
could I get this bahavior?

Regards Magnus
Stefan Blom - 01 Feb 2008 13:23 GMT
The usual way to deal with this is to place the form fields inside table
cells whose dimensions are fixed.

Signature

Stefan Blom
Microsoft Word MVP

> Hi,
>
[quoted text clipped - 5 lines]
>
> Regards Magnus
Magnus - 01 Feb 2008 14:17 GMT
Thanks Stefan,

I tried this, but I couldn't figure out how to create a table with a cell
whose dimensions are fixed.
How do you do this?

/Magnus

> The usual way to deal with this is to place the form fields inside table
> cells whose dimensions are fixed.
[quoted text clipped - 9 lines]
>>
>> Regards Magnus
Magnus - 01 Feb 2008 14:50 GMT
Hi,,

I found the row height is EXACT... so it works quite ok now.
I still get several lines if pressing enter, but the table does not expand.

If you have any tip of making the field impossible to wrap, I'll be glad,
but though, thanks for your help!

/Magnus

> Thanks Stefan,
>
[quoted text clipped - 18 lines]
>>>
>>> Regards Magnus
Stefan Blom - 04 Feb 2008 09:16 GMT
See this KB article:

How to code the ENTER key to move between form fields in a protected form in
Word
http://support.microsoft.com/kb/211219/en-us

Signature

Stefan Blom
Microsoft Word MVP

> Hi,,
>
[quoted text clipped - 29 lines]
>>>>
>>>> Regards Magnus
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.