+ Reply to Thread
Results 1 to 9 of 9

3 Combo Boxes

  1. #1
    Registered User
    Join Date
    12-03-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    4

    3 Combo Boxes

    I am very new to VBA so any help would be great! I have a data set in another file that has 3 col with thousands of rows. In all 3 columns I have values that are not unique. I need 3 combo-boxes. In the 1st combo box, I need to be able to choose what is in column "A" (bringing back unique values) for the diff. types of business units I have. Next, depending on the bus. unit, I need combo box 2 to allow you to select a specific customer (depending on the business unit you have selected - column B in data set). Finally, in combo box 3, I need the user to be able to select the different cost centers that exist for a given customer (column C in data set). I need unique values for all 3 col.

    I think I have combo box 1 with the following code:

    Please Login or Register  to view this content.
    Could someone help me figure out how to do combo box 2 and three? Any help is greatly appreciate.

    Thank you!
    Last edited by msarabia; 12-03-2018 at 02:07 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: 3 Combo Boxes

    Hi and welcome to the forum,

    Please note your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Click on Edit to open your thread, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    12-03-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    4

    Re: 3 Combo Boxes

    sorry. All this is very new to me.

  4. #4
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,256

    Re: 3 Combo Boxes

    Perhab Untest
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Last edited by daboho; 12-03-2018 at 04:48 PM.

  5. #5
    Registered User
    Join Date
    12-03-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    4

    Re: 3 Combo Boxes

    Run-time error '1004: Method 'Range' of object '_Worksheet' failed

  6. #6
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,256

    Re: 3 Combo Boxes

    You want get data from wbexternal from sheets("#2table_Revenue")
    With columns(1:3)
    Example If in a8:a12 = a,a,b,c
    In b8:b12 = x,xx,x,xd
    In c8:c12 = gx,gc,gx,gd

    In combobox1.list = a,b,c
    Then what you want result in combobox2 and combobox3
    "ThankyouFor Attention * And Your Help!!"

  7. #7
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,256

    Re: 3 Combo Boxes

    If only get unique
    Please Login or Register  to view this content.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,517

    Re: 3 Combo Boxes

    Assuming

    1) ComboBox x 3 named ComboBox1 ,2 & 3
    2) 3 columns of data are in colA, colB & colC.
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    12-03-2018
    Location
    United States
    MS-Off Ver
    2013
    Posts
    4

    Re: 3 Combo Boxes

    Thank you so much! You have no idea of the help you have provided. You are awesome!

+ 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. [SOLVED] Using Multiple Combo Box Values to populate a cell (Excluding blank combo boxes)
    By mnadamn19 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2016, 08:38 PM
  2. [SOLVED] Using Multiple Combo Box Values to populate a cell (Excluding blank combo boxes)
    By mnadamn19 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2016, 10:49 AM
  3. Using Multiple Combo Box Values to populate a cell (Excluding blank combo boxes)
    By mnadamn19 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-07-2016, 03:45 PM
  4. [SOLVED] Help with code for userform text boxes, combo boxes and excel
    By innerise in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-20-2014, 09:07 AM
  5. populating list boxes and combo boxes in a user form.
    By ahceinaej in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2014, 11:54 AM
  6. assigning data to lists boxes and combo boxes in userforms
    By weston.roberts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-01-2011, 03:11 AM
  7. assigning data to lists boxes and combo boxes in userforms
    By weston.roberts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2011, 08:46 PM

Tags for this Thread

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