+ Reply to Thread
Results 1 to 7 of 7

Value Dependent Dynamic Range ComboBox in Userform

  1. #1
    Registered User
    Join Date
    04-07-2015
    Location
    Burnley, UK
    MS-Off Ver
    2013
    Posts
    19

    Value Dependent Dynamic Range ComboBox in Userform

    Hello All,

    I am rather stumped. I am making a user-form that in the end generates a chart from the data in the workbook. Since it is to be something the user can set up so they get the chart they want, it requires some comboboxs that will filter what data the chart will show.

    There's a top level combobox, then another one underneath that changes its contents according to the value selected in the top one. I've gone through what must have been a dozen or so threads, but none seem to quite get the results I want. Lately I am getting the error 13 type mismatch, among others I have had in the past. Unfortunately the debugger doesn't highlight the offending line, so I have to try and guess.

    Please Login or Register  to view this content.
    The little text pieces are just "switched off" code until I get to grips with the first problem.

    Any help will be greatly thanked.

    Regards

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Value Dependent Dynamic Range ComboBox in Userform

    can you provide the workbook?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    04-07-2015
    Location
    Burnley, UK
    MS-Off Ver
    2013
    Posts
    19

    Re: Value Dependent Dynamic Range ComboBox in Userform

    Hello Arkadi,

    Thank you for the very quick response. Attached is the workbook. The VBA code for the userform is a bit messy, working progress.

    Regards

    Attached Files Attached Files

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

    Re: Value Dependent Dynamic Range ComboBox in Userform

    Try this for the Initialize event.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  5. #5
    Registered User
    Join Date
    04-07-2015
    Location
    Burnley, UK
    MS-Off Ver
    2013
    Posts
    19

    Re: Value Dependent Dynamic Range ComboBox in Userform

    Hi Norie,

    Thank you very much. Worked like a charm. Seems obvious now looking at it. Couldn't see the wood for the trees.

    Regards

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Value Dependent Dynamic Range ComboBox in Userform

    Sorry it took me some time to come back on, I see Norie has sorted you out. Please remember to mark the thread as solved?

  7. #7
    Registered User
    Join Date
    04-07-2015
    Location
    Burnley, UK
    MS-Off Ver
    2013
    Posts
    19

    Re: Value Dependent Dynamic Range ComboBox in Userform

    Hi Arkadi,

    Thank you and no worries about the delay. I had forgotten about marking it solved, so thank you for reminding me.

    Have a nice day.

    Regards

+ 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. VB UserForm ComboBox List Based On Dynamic Named Range in Worksheet
    By huntethic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2015, 02:45 PM
  2. [SOLVED] UserForm: ComboBox #2 dependent on ComboBox #1
    By TexasAggie12 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-25-2014, 10:41 AM
  3. [SOLVED] Userform with two combobox dependent on one combobox
    By bigfoot007 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-10-2012, 01:01 PM
  4. VBA Userform Dependent Combobox
    By TextMonkey in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-10-2011, 06:46 AM
  5. Dependent Combobox on Form not updating from dynamic range
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-08-2011, 12:59 PM
  6. Populate a combobox in a userform with a dynamic range.
    By BigBas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-23-2007, 01:12 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