can the tab order be changed based on
can the tab order be changed based on
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: can the tab order be changed based on

  1. #1
    Guest

    Default

     
    option buttons? for instance, if OB1 is selected, all textboxes are included in the tab order. If OB2 is selected, textbox1 & textbox4 are removed from the tab order.

    Thanks for the help

  2. #2
    MrExcel MVP
    Join Date
    Feb 2002
    Location
    Sydney, Australia
    Posts
    2,936
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Yeah sure - you can change the TabStop property of your textboxes at run-time e.g.

    Private Sub OB2_Click()
    If OB1.Value = True Then
    Me.TextBox1.TabStop = False
    Me.TextBox4.TabStop = False
    Else
    Me.TextBox1.TabStop = True
    Me.TextBox4.TabStop = True
    End If
    End Sub

    Private Sub OB1_Click()
    If OB2.Value = True Then
    Me.TextBox1.TabStop = True
    Me.TextBox4.TabStop = True
    Else
    Me.TextBox1.TabStop = False
    Me.TextBox4.TabStop = False
    End If

    End Sub

    HTH,
    D

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com