+ Reply to Thread
Results 1 to 2 of 2

Dependent combobox

  1. #1
    Registered User
    Join Date
    03-15-2019
    Location
    Ontario, Canada
    MS-Off Ver
    2016
    Posts
    1

    Dependent combobox

    Hi all,

    I don't speak english very well but I will try to describe my problem.

    I have a combobox with names of customers on "Sheet1". The name of corresponding contact person and his email will show in C24 and C25 after choosing a customer from combobox.

    I have list of customer on "Sheet2". Every customer can have one, two or three contact persons. Would it be possible to do following using VBA?

    If I choose for example second customer (customer "Best a.s.") with three contact persons I want to display second (new) combobox with three contact persons which belong to this customer (in my example "Tomas Miculka"; "Petr Nadvornik" and "Josef Pecha"). If I choose the first customer (FBM s.r.o.) I want to display only two contact persons ("Josef Novy" and "Igor Hnizdo") in the new combobox. Afterthat I choose one contact person from the second combobox and this contact person will show in C24 and his E-mail in C25.

    If the customer has only one contact person I don't want to display any other combobox but directly write the contact person and e-mail to C24 and C25

    The number of the contact persons can change - I can delete or add some contact person. So there is no fix number of contact persons by every customer.

    Could you please help me with this issue?

    Thank you very much

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: Dependent combobox

    crossposted: https://www.mrexcel.com/forum/excel-...-combobox.html

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.
    Read this to understand why we (and other sites like us) consider this to be important.

    I have added it for you today. If there are other sites, please list them. Please read our forum rules and comply in the future.
    Last edited by alansidman; 03-15-2019 at 03:19 AM.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    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. [SOLVED] Dependent Combobox
    By Rui Farinha in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-07-2016, 12:02 PM
  2. Populate combobox dependent on contents of previous combobox
    By ed1967 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-08-2014, 11:40 AM
  3. Populating combobox dependent on another combobox
    By JChaney17 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2014, 12:36 PM
  4. [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
  5. [SOLVED] VBA ComboBox Value Dependent on Conditional Value from Another ComboBox
    By Brianandstewie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-04-2013, 02:35 AM
  6. [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
  7. Dependent Combobox
    By aftabn10 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2011, 09:20 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