Tab Index for Protected Form Fields

C

Curtis G

Greetings,

I am trying to set up a Word Protected Form using Word 2003. I've run into
the issue of the tabindex. I've tried the advice at the following link in
using an 'OnExit' Macro from
http://word.mvps.org/faqs/tblsfldsfms/SetTabOrder.htm, which works for the
tab key wonderfully, but I am looking for a solution that will allow the user
to click on the field or use shift-tab to go backwards a field. The 'GOTO'
macro essentially overwrites this functionality as it always goes to the next
hard-coded field regardless of what is pressed.

What I am looking for is a way to check whether shift-tab or a mouse click
was what initiated exiting the field, and if that is not the case, run the
macro.

Any suggestions or help would be greatly appreciated.

Thanks

Curtis G
 
J

Jean-Guy Marcil

Curtis G was telling us:
Curtis G nous racontait que :
Greetings,

I am trying to set up a Word Protected Form using Word 2003. I've run
into the issue of the tabindex. I've tried the advice at the
following link in using an 'OnExit' Macro from
http://word.mvps.org/faqs/tblsfldsfms/SetTabOrder.htm, which works
for the tab key wonderfully, but I am looking for a solution that
will allow the user to click on the field or use shift-tab to go
backwards a field. The 'GOTO' macro essentially overwrites this
functionality as it always goes to the next hard-coded field
regardless of what is pressed.

What I am looking for is a way to check whether shift-tab or a mouse
click was what initiated exiting the field, and if that is not the
case, run the macro.

Any suggestions or help would be greatly appreciated.

As far as I know, you cannot detect that type of event with Word VBA.
The OnExit macro gets called, whichever way the exit happens.
 
G

Gordon Bentley-Mix on news.microsoft.com

Curtis,

The OnExit event has no awareness of the process (tab, shift+tab, mouse
click) used to invoke it. Therefore, what you are asking for is not possible.
--
Cheers!

Gordon Bentley-Mix
Word MVP

Please post all follow-ups to the newsgroup.

Read the original version of this post in the Office Discussion Groups - no
membership required!
 

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