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 / January 2007

Tip: Looking for answers? Try searching our database.

Prevent Carriage Return in a Form Field - Protected Document

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Joshua - 11 Dec 2006 20:01 GMT
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
Jay Freedman - 11 Dec 2006 20:43 GMT
You've already tried the only methods that are available. What about them is
not sufficient?

Signature

Regards,
Jay Freedman
Microsoft Word MVP        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.

> 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.
[quoted text clipped - 20 lines]
>
> Joshua
Joshua - 11 Dec 2006 21:01 GMT
> 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.
Jay Freedman - 12 Dec 2006 04:29 GMT
>> You've already tried the only methods that are available. What about them is
>> not sufficient?
[quoted text clipped - 3 lines]
>
>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        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
Joshua - 13 Dec 2006 18:18 GMT
>>> You've already tried the only methods that are available. What about them is
>>> not sufficient?
[quoted text clipped - 16 lines]
> 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.
Jay Freedman - 13 Dec 2006 19:48 GMT
>>>> You've already tried the only methods that are available. What about them is
>>>> not sufficient?
[quoted text clipped - 22 lines]
>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        FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
DM - 26 Jan 2007 19:16 GMT
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

> >>>> You've already tried the only methods that are available. What about them is
> >>>> not sufficient?
[quoted text clipped - 34 lines]
> Email cannot be acknowledged; please post all follow-ups to the
> newsgroup so all may benefit.

Rate this thread:






 
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.