Prevent Carriage Return in a Form Field - Protected Document

J

Joshua

I'm looking for a way to prevent user's from breaking a template form
which I created by hitting the enter Key in a Form Field.

I know about this article:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q187985#appliesto

Which works great but requires macro's.

I also know about inserting the form fields into a table which I have
done in other area's of form.

Are there any other methods that would get around this situation?

I have all form fields hard coded with a number of characters, but it
doesn't matter if they can just hit enter.

Thanks for any and all help!!

The file I'm working on is found here:

http://jkfweb.com/files/Sale - Return RFC.dot

Joshua
 
J

Jay Freedman

You've already tried the only methods that are available. What about them is
not sufficient?

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.
 
J

Joshua

Jay said:
You've already tried the only methods that are available. What about them is
not sufficient?

Trying to avoid adding macro's to a template, because the person who
asked me to create form didn't want macro's.

I have trouble applying all the formatting I would like in Tables.
 
J

Jay Freedman

Trying to avoid adding macro's to a template, because the person who
asked me to create form didn't want macro's.

I have trouble applying all the formatting I would like in Tables.

The fear of macros in templates is irrational and severely limits the
ways you can customize Word. (Macros in documents, if you don't know
where the document originated and what the macros do, are to be
avoided.) In this case, the macros in the Microsoft article are the
only reasonable solution.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
J

Joshua

Jay said:
The fear of macros in templates is irrational and severely limits the
ways you can customize Word. (Macros in documents, if you don't know
where the document originated and what the macros do, are to be
avoided.) In this case, the macros in the Microsoft article are the
only reasonable solution.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.

Thanks :)

I was afraid of that. Believe me I understand what your saying but when
one of the VP's at your company tells you he would rather not have
macro's in it then, who am I to argue with him.
 
J

Jay Freedman

Thanks :)

I was afraid of that. Believe me I understand what your saying but when
one of the VP's at your company tells you he would rather not have
macro's in it then, who am I to argue with him.

If the form is important enough, you tell him that he's impairing his
company's competitiveness against companies that use their resources
instead of arbitrarily ruling them out. Otherwise, you shrug and go on
to the next assignment. :)

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
D

DM

I would disagree with Mr. Freedman's comments. The role of the IT Department
is to support the current business; and in the world of IT the first business
rule is that given enough time and money anything is possible. If this is
important to the company then you present them with a possible cost. It is
their decision whether they want to invest the company's resources for this
project.

If you have a table that you do not want the integrity of the format to
change here is a simple solution: make sure that the row height where the
field exist is set to "Exactly"

-Unprotect the form
-Select the row you want.
-From the Table menu, choose Table Properties
-Click on the row tab and set the height of the row based on the number of
carriage return you want to limit that field to.
-Set the Row height to Exactly
-Protect the form

The user can hit the Carriage Return as many times as he wants but the form
template will not break.

A solution with no marcos.

DM
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top