I’ve created a template in MS Word that I would like to have users fill in
the fields but not allow them to modify the length of the document by using
the Enter key (Carriage Return), the protect function does not appear to
prevent them from doing this.
I tried the following macro in Visual Basic and it passed the DeBugger but
does not function as I intended
If KeyCode = vbKeyReturn Then keyCode = vbKeyTab
Has anyone encountered this before? Any insight would be welcomed.
Jay Freedman - 28 Apr 2006 15:51 GMT
See http://support.microsoft.com/?kbid=187985.

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've created a template in MS Word that I would like to have users
> fill in the fields but not allow them to modify the length of the
[quoted text clipped - 7 lines]
>
> Has anyone encountered this before? Any insight would be welcomed.
Jean-Guy Marcil - 28 Apr 2006 15:54 GMT
Keymaster2006 was telling us:
Keymaster2006 nous racontait que :
> I've created a template in MS Word that I would like to have users
> fill in the fields but not allow them to modify the length of the
[quoted text clipped - 7 lines]
>
> Has anyone encountered this before? Any insight would be welcomed.
See
http://support.microsoft.com/?kbid=211219
for a set of macros to make the Enter key act like the Tab key in a
protected form.

Signature
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
jmarcilREMOVE@CAPSsympatico.caTHISTOO
Word MVP site: http://www.word.mvps.org