+ Reply to Thread
Results 1 to 4 of 4

VBA Code For ComboBox With Indirect Options

  1. #1
    Registered User
    Join Date
    07-11-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    6

    Angry VBA Code For ComboBox With Indirect Options

    Hi,

    I just want to ask if anyone can help me solve this problem, I have 3 Boxes (ComboBox 1,2 & 3). I want to use the VBA code in the userform to perform an indirect options but I'm not sure if this is possible.

    I've also attached a copy of the spreadsheet as an example.

    Can some of you excel guru help me out?

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA Code For ComboBox With Indirect Options

    Hi

    i dont know how to do it with form controls but achieved the same thing with ActiveX

    the syntax for form controls is different

    in VBA there is no need to indirect
    ComboBox5.ListFillRange = ComboBox4.Text
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Registered User
    Join Date
    07-11-2013
    Location
    Sydney
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: VBA Code For ComboBox With Indirect Options

    Hi humdingaling,

    I've updated the spreadsheet, do you know how to put this in a Userform???

    see attachment.
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: VBA Code For ComboBox With Indirect Options

    syntax is different but idea behind code is the same
    instead of listfillrange
    use rowsource

    the thing that is not in the code is the combobox1 rowsource is set outside of code
    see it in properties in VBAproject
    Attached Files Attached Files
    Last edited by humdingaling; 07-30-2013 at 07:45 PM.

+ 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] Combobox two options not filtering as expected
    By nickmax1 in forum Excel Programming / VBA / Macros
    Replies: 30
    Last Post: 11-29-2012, 12:47 PM
  2. Change ComboBox Options in Excel
    By sgp in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2011, 07:18 AM
  3. Change ComboBox Options
    By sgp in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-13-2011, 08:43 AM
  4. Options in Combobox
    By cruiser102 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-10-2009, 04:52 PM
  5. Combobox options based on the input of another combobox
    By afmullane in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-03-2006, 08:50 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