Is there a resource for VB to convert Enter key to Tab functional.

K

Keymaster2006

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.
 
J

Jean-Guy Marcil

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
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.

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.

--
Salut!
_______________________________________
Jean-Guy Marcil - Word MVP
(e-mail address removed)
Word MVP site: http://www.word.mvps.org
 

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