Results 1 to 3 of 3

Thread: Tab Key & Combo Selection

  1. #1

    Thread Starter
    Lively Member yanty's Avatar
    Join Date
    Nov 2005
    Location
    Singapore
    Posts
    83

    Tab Key & Combo Selection

    I'm using Microsoft Excel and I want to use the 'tab' key to move from controls to controls.
    I also want to select item named 'Classic' from combobox and another textbox will show text "A classic package". No database. Done statically.

    Anyone can share his/her knowledge? Thks!
    Last edited by yanty; Jan 23rd, 2006 at 02:13 AM.

  2. #2
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: Tab Key & Combo Selection

    Quote Originally Posted by yanty
    I'm using Microsoft Excel and I want to use the 'tab' key to move from controls to controls.
    Are your controls on a form or are they on a worksheet?

    Quote Originally Posted by yanty
    I also want to select item named 'Classic' from combobox and another textbox will show text "A classic package". No database. Done statically.
    The easiest way to do this is to link the combobox to a cell (Cell1) and the textbox to another cell (Cell2). Then you csn build a formula in Cell2 that references the value in Cell1.
    Or if you want to achieve this using VBA, you would use the _Change event of the combobox to populate a value in the textbox.
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

  3. #3

    Thread Starter
    Lively Member yanty's Avatar
    Join Date
    Nov 2005
    Location
    Singapore
    Posts
    83

    Re: Tab Key & Combo Selection

    Thank you. The change event worked.

    VB Code:
    1. Private Sub ComboBox1_Change()
    2.  
    3. If ComboBox1.ListIndex = 0 Then
    4. TextBox24.Text = "Classic"
    5. Else
    6. ComboBox1.ListIndex = -1
    7. TextBox24.Text = "Exclusive"
    8. End If
    9.  
    10. End Sub

    My controls are on a worksheet.
    Last edited by yanty; Jan 23rd, 2006 at 10:15 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
  •  



Click Here to Expand Forum to Full Width