Results 1 to 4 of 4
  1. #1
    New Lounger
    Join Date
    Oct 2003
    Location
    Brussel, Belgium
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Carriage Returns in Protected Fields (Word 2000)

    I'm trying to create a template. I've added the fields within a table and set all the properties. I've protected the template for forms. When I open a document based on the template, I can tab between the fields as I would expect, but I don't like the fact that a carriage return <enter> is an allowable character in the field--it throws off the layout of the whole page. Is there some way that I can prevent the user from adding a carriage return in the protected field?

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Carriage Returns in Protected Fields (Word 2000)

    I don't think so, as many people have complained about this in the past. But you can reassign many keys in Word, either through a handy dialog, or, for keys like Enter, through program code (KeyBindings). For example, you could try to force the Enter key to behave in the same way as the Tab key. That would be convenient for your users. The trick is to make sure the effect is limited only to the form, or you will get a LOT of phone calls, and they might not be very pleasant. <img src=/S/smile.gif border=0 alt=smile width=15 height=15>

    Due to press of business, I can't write code for this now, but see, for example, <post#=277460>post 277460</post#>.

  3. #3
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Los Angeles Area, California, USA
    Posts
    7,453
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Carriage Returns in Protected Fields (Word 200

    One thing you can do is put the formfield in a frame or table cell. Then set the width to an exact measurement. This will prevent the user from changing the layout. It doesn't actually prevent them from typing a second line in the formfield, but it does hide everything after the first line. See the attached document for an example. If you unprotect it, you'll find that you can stretch the formfield.
    Cheers,
    Attached Files Attached Files

  4. #4
    New Lounger
    Join Date
    Oct 2003
    Location
    Brussel, Belgium
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Carriage Returns in Protected Fields (Word 200

    Phil,

    Thanks for this bit of advice--I'd actually considered that as an option, but thought it to difficult to implement. As the simple solution isn't available, I suppose I need to go the difficult route.

    TVM.

Posting Permissions

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