+ Reply to Thread
Results 1 to 5 of 5

Multiple ComboBox list

  1. #1
    Registered User
    Join Date
    09-08-2014
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    2

    Multiple ComboBox list

    Hi there,

    I am new to VBA, and trying to make a userform that help the user to fill information, 2 of the fields are ComboBox areas, One is called BizCat and the other is BizSub.

    I want to the list of the second box (BizSub) to depend on the selection of the first box (BizCat), I have listed categories (Cat) and subcategories (Sub) in Sheet 2, and the first list of Subs is from A17 to A19, the second list of Subs is from A24 to A25, so it is a short list.

    Below is the code that I am using ( I found it on another post in this website):

    Please Login or Register  to view this content.
    but when I select any item in the first box, I get the compile error (Method or Data member not found)

    Someone suggested to make sheet2 active and save, but it did not work.

    Any idea please?

    I am using Excel 2016 and Windows10

    Many thanks in advance
    Last edited by Pepe Le Mokko; 12-03-2019 at 04:52 AM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,596

    Re: Multiple ComboBox list

    The .ListFillRange is a property of an ActiveX worksheet combobox. The equivalent UserForm combobox property is .RowSource.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    09-08-2014
    Location
    UAE
    MS-Off Ver
    2013
    Posts
    2

    Re: Multiple ComboBox list

    Yes, it did work, many thanks

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux - O365
    Posts
    12,508

    Re: Multiple ComboBox list

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however you need to include code tags around your code.

    Please take a moment to add the tags. Posting code between tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.

    Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, 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

    I did it for you this time. Please read forum rules. Thanks
    I'm a newbie with PQ, so if my solution can be improved, please let me know. Thanks

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 365 Win 11 Home 64 Bit
    Posts
    21,245

    Re: Multiple ComboBox list

    crossposted: https://www.ozgrid.com/forum/index.p...combobox-list/

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future
    Alan


    Have you debugged your code?
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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. Replies: 1
    Last Post: 02-24-2016, 12:13 PM
  2. [SOLVED] Change next ComboBox list based on previous ComboBox selection
    By SteveTheFish in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-26-2015, 11:23 PM
  3. Making a FormControl ComboBox's list depend on the value of another ComboBox's Reference
    By dpsciarrino in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2013, 11:52 PM
  4. [SOLVED] Make combobox list options dependant on selection in another combobox within a userform
    By Vladimir_Dobvchenko in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-23-2013, 05:30 AM
  5. How to run multiple macros on combobox list to go to the worksheet selected
    By ACCT-003 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-24-2013, 07:17 AM
  6. Userform Combobox - Choose Multiple Items from list and input on seperate lines
    By CRIMEDOG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2012, 04:09 PM
  7. Replies: 5
    Last Post: 07-21-2008, 07:49 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