+ Reply to Thread
Results 1 to 6 of 6

Need active X list box content to change based off of combo box selection

  1. #1
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Need active X list box content to change based off of combo box selection

    On the sheet Filter Data 4 I have 3 combo boxes on the left side of the sheet (ignore the 3 on the right). Below each one is a list box. The options in the combo boxes are for named ranges. I would like for the list box to be populated with the appropriate named range that is selected in the combo box. There is also a blank option(the first selection in the combo box. If this is selected I would like there to be no available options in the list box. Thank you for your assistance.
    Attached Files Attached Files

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Need active X list box content to change based off of combo box selection

    Try someting like this.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: Need active X list box content to change based off of combo box selection

    Please Login or Register  to view this content.
    I modified your code by inserting the named range Year_Macrocycle. (I think named range is the right term) I then got an error at this line,
    Please Login or Register  to view this content.
    How do I modify that line?

  4. #4
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: Need active X list box content to change based off of combo box selection

    Please Login or Register  to view this content.
    I assume for the second named range I want inserted I would change the above -1 to -2, and for the third option change it to -3?

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Need active X list box content to change based off of combo box selection

    You don't need to modify anything in the code I posted, it will work for all the named ranges/options listed in the combobox.

    Oh, forgot about Exercises.

    You have Exercise in the combobox but the named range is Exercises, I changed that on 'Admin Sheet'

  6. #6
    Forum Contributor
    Join Date
    04-02-2012
    Location
    Ohio
    MS-Off Ver
    Excel 2010
    Posts
    452

    Re: Need active X list box content to change based off of combo box selection

    Ok, it is working perfectly. Thank you very much.

+ 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. show a list of items based on combo box selection
    By zak.horrocks in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-01-2014, 06:14 AM
  2. [SOLVED] Worksheet change event code to display message box based on active cell offset content
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2014, 02:52 PM
  3. Active Sheet from Combo Box Selection (User Form)
    By justinep in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 12-24-2013, 03:06 AM
  4. Dynamic dropdown list selection based on combo box
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-10-2012, 10:55 AM
  5. List Box selection based on combo box selection
    By MFA in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-09-2008, 10:19 AM

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