Results 1 to 2 of 2

Thread: List box tabbing

  1. #1
    Junior Member
    Join Date
    Jun 2014
    Posts
    1
    Rep Power
    0

    List box tabbing

    Hello,

    I posted this thread here:

    Tabbing through list boxes - Page 2

    and received some excellent help from Rick Rothstein. However, the thread kept getting buried so I decided to come over here. I hope that is ok.

    I am trying to take this code that Rick gave me, and invert it to where I can tab from a cell B14 to activate ListBox5. I have tried several times to do this on my own, but can't figure it out.

    Code:
    Private Sub ListBox1_KeyUp(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
      If KeyCode = vbKeyTab Then
        Me.ListBox2.Activate
      End If
    End Sub
    also, I would like to take this code, and make tabbing dependent on the outcome. If ListBox 6 becomes enabled tab there, if not tab to ListBox8.

    Code:
    Private Sub ListBox5_Click()
    Dim IsYes As Boolean
    IsYes = Me.ListBox5.Value = "Yes"
    Me.ListBox6.Enabled = IsYes
    Me.ListBox7.Enabled = IsYes
    End Sub

  2. #2
    Senior Member LalitPandey87's Avatar
    Join Date
    Sep 2011
    Posts
    222
    Rep Power
    13
    Could you please attach sample file and make your query more understandable so may be someone would help you.

Similar Threads

  1. Replies: 2
    Last Post: 09-03-2013, 11:00 PM
  2. Replies: 2
    Last Post: 07-28-2013, 09:29 AM
  3. Replies: 4
    Last Post: 07-27-2013, 01:34 PM
  4. Replies: 1
    Last Post: 05-03-2013, 04:41 PM
  5. Delete List Contain Matching from Second List
    By Rajan_Verma in forum Rajan Verma's Corner
    Replies: 12
    Last Post: 10-07-2012, 07:18 PM

Posting Permissions

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