Good morning Brian. Welcome to Microsoft Newsgroup Support Service! My name
is Jialiang Ge [MSFT]. It¡¯s my pleasure to work with you on this issue.
As you may have found, Word does not have built-in options to customize the
tab order of the textboxes. This limit is documented at a Word MVP site:
http://word.mvps.org/FAQs/TblsFldsFms/SetTabOrder.htm
However, we have workarounds. The above link demonstrates two possible
solutions. You may want to try them. Another working example on my side is
by using TextBox¡¯s KeyDown event + bookmark. Let me explain it in detail:
Suppose that we have three textboxes in a line: TextBox1, TextBox2,
TextBox3. The default tab order of Word is TextBox1->TextBox2->TextBox3. In
order to jump from TextBox1 to TextBox3, we first add KeyDown event handler
for TextBox1:
Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal
Shift As Integer)
End Sub
Second, I add a bookmark inside TextBox3 by
1. exit the ¡°Design Mode¡± of form
2. click (put the cursor) inside TextBox3
3. go to the Insert ribbon of Word 2007, click on ¡°Bookmarks¡± in the
¡°links¡± tab.
4. add a bookmark named ¡°Text3¡±
Third, we replace TextBox1_KeyDown event handler with this:
Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal
Shift As Integer)
If KeyCode = 9 Then
ActiveDocument.Bookmarks("Text3").Select
End If
End Sub
Last, protect the document to allow ¡°filling in forms¡± and test our works.
Note, I choose to use a bookmark instead of
If KeyCode = 9 Then
TextBox3.Activate
End If
because TextBox3.Activate is not allowed after the document is protected
with ¡°filling in forms¡±.
Brian, I can send you my test document if it will help as well. Please let
me know whether the above solution is helpful or not, or please tell me
your email by sending one to my mailbox: (e-mail address removed) so that I can
send my test document to you.
Regards,
Jialiang Ge (
[email protected], remove ¡®online.¡¯)
Microsoft Online Community Support
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.