Tab Order when Word Table Rows are hidden

W

Worsty

I have created a Word Form with 4 tables in which based upon certain
values selected rows are hidden. In my testing I noticed that when I
tab from one field to another that the tabbing appears to be going
through ALL of the hidden form fields before finally arriving at the
unhidden form field.

Is there any way to control the tabbing when you have rows hidden in a
table?

Thanks in advance.
 
F

Fumei2 via OfficeKB.com

If you are going to use Tab, no. It will tab through the formfields,
regardless of whether they are hidden text, or not.
 
G

Graham Mayor

To avoid that , when you hide the fields make them un-enabled and reenable
when they are displayed.
With ActiveDocument
If .ProtectionType <> wdNoProtection Then
.Unprotect Password:=""
End If
With .FormFields("Text1")
If ActiveDocument.FormFields("Dropdown1").Result = 1 Then
.Result = ""
.Range.Font.Hidden = True
.Enabled = False
Else
.Range.Font.Hidden = False
.Enabled = True
End If
End With
.Protect _
Type:=wdAllowOnlyFormFields, _
NoReset:=True, _
Password:=""
End With


--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor - Word MVP


<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
 
W

Worsty

To avoid that , when you hide the fields make them un-enabled and reenable
when they are displayed.
With ActiveDocument
    If .ProtectionType <> wdNoProtection Then
        .Unprotect Password:=""
    End If
    With .FormFields("Text1")
        If ActiveDocument.FormFields("Dropdown1").Result = 1 Then
            .Result = ""
            .Range.Font.Hidden = True
            .Enabled = False
        Else
            .Range.Font.Hidden = False
            .Enabled = True
        End If
    End With
    .Protect _
    Type:=wdAllowOnlyFormFields, _
    NoReset:=True, _
    Password:=""
End With

--
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>
Graham Mayor -  Word MVP

My web sitewww.gmayor.com
Word MVP web sitehttp://word.mvps.org
<>>< ><<> ><<> <>>< ><<> <>>< <>><<>








- Show quoted text -

Thanks again Graham.....I'll get back to you after I work with this in
my form.
 

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