Results 1 to 2 of 2

Thread: Type Ahead Combo Box in MSExcel

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2003
    Location
    New Zealand
    Posts
    1

    Question Type Ahead Combo Box in MSExcel

    I am using a drop down combo box in many of my forms. Its called:- ComboBox_ContractorSearch
    It is populated from just one spreadsheet page in my excel workbook.
    Workbooks(“MainPage.xls”)
    Worksheets(“T_Contractors”)

    I want to make this combo box auto-complete in the following way:-

    1. When I begin to type a contractor’s name in the textbox the box drops down with a complete list of all the contractors whose names start with that letter.
    2. If the name I want appears in the list I want to be able to click on it so that the name appears in the text box area while the dropdown list disappears.
    3. Else I type another letter and the dropdown list automatically shortens up to include only the names of contractors who have names starting with these two letters.
    4. This would be a much shorter list and would probably have the name I want, but if not, I want to continue typing with the drop down list continually shortening up until it has the name I want, or is not visible any more.
    Can anyone show me how to do this using VBA in Office 2000 XL

  2. #2
    Addicted Member
    Join Date
    Aug 2002
    Location
    Luton, UK
    Posts
    178
    Perhaps setting the AutoWordSelect property to False will do what you want ?
    Regards
    BrianB
    -------------------------------

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