+ Reply to Thread
Results 1 to 8 of 8

Combo Box

  1. #1
    Registered User
    Join Date
    09-16-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Combo Box

    Hello everyone,

    I have attached a Work Book for your reference and guidance.

    I wish to have a combo box that I will place in H6 to H60, I want the combo box to display the words in the INFO sheet starting with accounts payable and ending with Misc / other,

    I can do it as a normal combo box BUT, is there a way to have it so that they can select the arrow to make it use the drop down feature OR start typing the word and have it auto recognize??

    in G6 and below I was hoping to have the Code auto populate depending on what is selected from the Combo box e.g. accounts payable as AP. All the Abreviations are also on the "info" sheet in the workbook

    thank you very much for your time
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-08-2012
    Location
    Newcastle, Australia
    MS-Off Ver
    Excel 2007 and Excel 2010
    Posts
    1,429

    Re: Combo Box

    Hi,

    Have you considered using data validation for this?

    Highlight H6:H60, then on the "Data" tab, select "Data Validation", and choose to allow "List". Then make the source of the list
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then to populate the code, use an INDEX/MATCH function. So in cell G6, the formula would be
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    which can then be dragged down to G60.

    Hope this helps

    EDIT: It will only auto-recognise if the same value is already present above or below the current cell
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    09-16-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Combo Box

    thanks for your reply, I did try data validation and I have come across a few issues that I probably should have mentioned in my original post,

    with data validation you cannot control how big the list is and you cannot use the mouse wheel to scroll down the list. My user would prefer that either you can scroll down the list or make the list show more options, which I believe is possible through a combo box

  4. #4
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Combo Box

    Hi,
    just for fun, see if it helps you!
    Attached Files Attached Files
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  5. #5
    Registered User
    Join Date
    09-16-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Combo Box

    sorry what actually changed?

  6. #6
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Combo Box

    Hi,
    ajryan provided a very good solution with data validation, you said that the user would prefer to scroll down the list...so I created a small UserForm with a Textbox and a Combobox inside, you need to dbl click in your cells h2:h60 and the UserForm shows up, type/choose your data and then send it to the desire sheet (depends on what sheet are you in, see the OptionButton!)

    have a nice day!
    Last edited by john55; 09-26-2013 at 01:59 AM.

  7. #7
    Registered User
    Join Date
    09-16-2013
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Combo Box

    thank you very much john I didn't notice that when I first downloaded it, quick question, is it possible for you to make it work on all the sheets? and to make the size of the drop down list show all options? I don't know how to work the code to make it do that thanks again

    p.s is it possible to make it if we hit enter or something to insert it rather than having to hit okay with the mouse??

  8. #8
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Combo Box

    see if it helps you!
    once the item is selected from yr combobox, it's sent to the active cell (there you dbl click to open the userform!), you can use the button (for sending data) also.

    Cheers
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. combo box input range based on the other combo box selection
    By hedayet in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-08-2013, 02:27 AM
  2. combo box user form code for two combo boxes
    By robert.begley1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-01-2012, 02:25 PM
  3. [SOLVED] How to reference a second Combo box’s output based on previous Combo Box’s Row source
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2012, 11:27 AM
  4. [SOLVED] Filtered list for Combo Box ListFillRange - Nested Combo Boxes
    By DoctorG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-23-2006, 08:20 AM
  5. Replies: 0
    Last Post: 02-15-2005, 06:45 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1