+ Reply to Thread
Results 1 to 4 of 4

ComboBox VB help

  1. #1
    Registered User
    Join Date
    07-23-2010
    Location
    nashvile, tn
    MS-Off Ver
    Excel 2003
    Posts
    12

    ComboBox VB help

    ******Well I just noticed that the topic below me is the same question.... However I am needing to do this in a user form... I do not know if that changes the answer given to the other poster.. thanks *********

    Hello... I think this should be pretty simple but I do not know enough VB to figure it out... (I know how to create combo boxes from the numerous guides online... however I am not sure how to do special coding to one)


    I am wanting to have two comboBoxes on this user form..

    The first drop down box I want to have different store names.

    The second drop down box I want it to display a list of items from a store that was selected in the first drop down box.

    My guess is I would have the regular code for the first combobox and then an if statement to create the second combo box.

    Thanks. If I need to be more clear somewhere please let me know... But this is pretty straight forward .. I would think.
    Last edited by meister14; 11-07-2010 at 02:10 PM.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: ComboBox VB help

    It depends where the data is & how it is set out. Attach an example workbook
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,485

    Dependent comboboxs in a userform

    Here is a small example of how it could be done, notice the named ranges.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-23-2010
    Location
    nashvile, tn
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: ComboBox VB help

    Thats perfect... thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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