Word Form - Tab Stops

Posted on 2007-10-01
Medium Priority
Last Modified: 2012-06-27
I have a form created in word and I don't want users of this form to have to stop at each cell when they tab thru.  I want them to stop at specific cells only as they tab.  How can this be accomplished?
Question by:rgarzakavo
  • 3
  • 2
LVL 76

Expert Comment

ID: 19992025
Presumably, by cell, you mean FormField.

There is no particular mechanism for changing or disabling the tab order of formfields. The best that you can do is to disable any formfields that you don't want to appear in the tab order. However that would mean that you would have to re-enable the field in order to enter data into it.

This VBA code shows how to enable all fields and to disable a selection.

Author Comment

ID: 19992109
Is there more to this proposed solution?  I see no VBA code.
LVL 76

Accepted Solution

GrahamSkan earned 1000 total points
ID: 19993070
Sorry. I forgot to paste it in:

Sub DisableFFSet1()
    Dim Set1 As String
    Dim ffld As FormField
    Dim strSet1() As String
    Dim f As Integer
    Set1 = "1,3,5"
    'enable all
    For Each ffld In ActiveDocument.FormFields
        ffld.Enabled = True
    Next ffld
    'disable particular fields
    strSet1 = Split(Set1, ",")
    For f = 0 To UBound(strSet1)
        ActiveDocument.FormFields("Text" & strSet1(f)).Enabled = False
    Next f

End Sub

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.


Author Comment

ID: 19993475
Does anyone have an easier way?
LVL 70

Expert Comment

ID: 19997918
Create a table

Insert form fields into the cells where you want people to enter data (view ther forms toolbar to do this)

Lock the document for forms

See http://www.computorcompanion.com/LPMArticle.asp?ID=22

Author Comment

ID: 19998843
ok - I'm back to GrahamSkan.   Can you in detail explain the solution you provide?  It is not simple change, but it will most likely be my solution.  

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
Preface: When I started this series, I used the term CommandBars because that is the Office Object class that it discusses. Unfortunately, when Microsoft introduced Office 2007, they replaced the standard Commandbar menus with "The Ribbon" and rem…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question