+ Reply to Thread
Results 1 to 6 of 6

Dependent dropdown list in use form

  1. #1
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    169

    Dependent dropdown list in use form

    Hi,
    I want to create dependent drop down list in user form in vba. Second drop down will show text as per the choice of first dropdown. 1st and 2nd dropdown list text will be taken from specific cells from sheets 1 for me it is database sheet. For example if i select fruits in 1st dropdown list then in 2nd dropdown there will be Grapes, Apple, Banana, but if select vegetables in 1st dropdown then there will be options ladyfinger, tomato, coli flower in 2nd dropdown.
    Also when i want two buttons like, Add and close. Add button will add the data in blank rows but will not close the form. New data will be added to next blank row. When i will click on close button, it will close data entry form.

    Thank you

  2. #2
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,150

    Re: Dependent dropdown list in use form

    Quote Originally Posted by chintamani.avinash View Post
    ... if ... vegetables in 1st dropdown then there will be options
    ladyfinger ...coli flower in 2nd dropdown ...

    Saints of Lord ! Holy Aubergine, Holy Biscuits and you Holy Microbes !

    ... ladyfinger and E. coli = vegetables ...



    Attach a sample file with what you have already achieved, i.e. userform, vbe.
    Change confidential data to false data to protect privacy and "company secrets".

  3. #3
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Dependent dropdown list in use form

    Table 1 - Sheet2 - feed for comboboxes.
    select combo1 followed by combo2 on press 'ADD' places on Sheet1 Table2
    torachan.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    169

    Re: Dependent dropdown list in use form

    Quote Originally Posted by torachan View Post
    Table 1 - Sheet2 - feed for comboboxes.
    select combo1 followed by combo2 on press 'ADD' places on Sheet1 Table2
    torachan.
    Thanks for reply. I am here attached my file for more understanding. I want to have both text entries i.e. 1st category and dependent entry in blank row. Also user form will adjust dependent list as per the given data in sheet 2. Means if i add new mail category or sub category then user form will adjust that also.
    Attached Files Attached Files

  5. #5
    Forum Expert torachan's Avatar
    Join Date
    12-27-2012
    Location
    market harborough, england
    MS-Off Ver
    Excel 2010
    Posts
    4,302

    Re: Dependent dropdown list in use form

    Sorry, I do not fully understand what you want.
    Therefore rather than add to confusion I will leave it up to someone else to fulfill your requirement
    torachan.

  6. #6
    Forum Contributor
    Join Date
    11-24-2019
    Location
    India
    MS-Off Ver
    Ms. Office 2016
    Posts
    169

    Re: Dependent dropdown list in use form

    Quote Originally Posted by torachan View Post
    Sorry, I do not fully understand what you want.
    Therefore rather than add to confusion I will leave it up to someone else to fulfill your requirement
    torachan.
    Sorry if i am not clear. I try to explain again. As per my excel file, when i will add or enter data in my sheet 1, two fields should be added i.e. Category in column B and Dependent list in column C. As per your excel only one field is added in sheet 1.
    Instead of giving list of Category and Dependent list in vba coding i want to give range mentioned in sheet 2, so that if i want to add or remove any name it will be easy and quick for me.
    Also i want two buttons in user form i.e. Add and second will be 'Close'. Add button will add data to next row but will not close the form. And Close button will close the form.
    Last edited by chintamani.avinash; 09-29-2020 at 02:33 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. Dependent Dropdown List
    By rjcjason in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-07-2018, 10:51 AM
  2. Replies: 1
    Last Post: 06-04-2018, 06:16 PM
  3. [SOLVED] Multiple Dependent Dropdown List
    By hanif in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 05-29-2018, 08:45 AM
  4. Dependent dropdown list
    By Spikyd in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-15-2017, 08:09 AM
  5. Replies: 7
    Last Post: 11-21-2016, 04:40 PM
  6. User Form Dependent Dropdown (ComboBox)
    By tmleynek in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-15-2015, 04:45 PM
  7. [SOLVED] How to create third dependent dropdown list?
    By kyawzw in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 11-26-2012, 02:05 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