P
pwrichcreek
I have a protected document with form fields and tables in WORD 2002. When a
users hits the ENTER key inside a table, WORD simply adds a row's worth of
space to the cell. (Not sure why this happens when the table is protected.)
I'd like to change this behavior so that the ENTER key simply moves the
cursor to the next cell. I've seen examples of trapping the TAB key and
substituting the NextCell command for that. I suppose I can do that with the
ENTER key; but the main problem may be that I only want to alter this
behavior while inside the table, not within other sections of the form.
So, my questions are:
a. Can I substitute NextCell for the ENTER key?
b. Can I limit that behavior to the table, and let the ENTER key do its own
thing when outside the table?
c. Is there a way to tell inside my code whether the cursor is current
inside the table, if the table is in its own section? Can I utilize bookmarks
to identify the start and end of the table and somehow make use of this?
TIA,
Phil
users hits the ENTER key inside a table, WORD simply adds a row's worth of
space to the cell. (Not sure why this happens when the table is protected.)
I'd like to change this behavior so that the ENTER key simply moves the
cursor to the next cell. I've seen examples of trapping the TAB key and
substituting the NextCell command for that. I suppose I can do that with the
ENTER key; but the main problem may be that I only want to alter this
behavior while inside the table, not within other sections of the form.
So, my questions are:
a. Can I substitute NextCell for the ENTER key?
b. Can I limit that behavior to the table, and let the ENTER key do its own
thing when outside the table?
c. Is there a way to tell inside my code whether the cursor is current
inside the table, if the table is in its own section? Can I utilize bookmarks
to identify the start and end of the table and somehow make use of this?
TIA,
Phil