+ Reply to Thread
Results 1 to 3 of 3

Making a drop down list from VBA?

  1. #1
    Registered User
    Join Date
    01-11-2020
    Location
    Norway
    MS-Off Ver
    Microsoft Office 2019
    Posts
    74

    Making a drop down list from VBA?

    Hi,

    So I have a small issue.

    I have a drop down list that will show different values based on what text another drop down list will show (in other words, the drop down list will show different values (that the user can select) based on what text another cell show).

    This works fine if I use the "If" command inside the values of the other drop down list. The problem is, the "iF" command is getting bigger by the minute since I am adding stuff all the time.

    Is it possible to make this in VBA? That would make it so much easier to modify.

    Maybe a UDF that can be written inside the same place where I write the IF command I write now?

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,499

    Re: Making a drop down list from VBA?

    Typically, the way to create Dependent Dropdown Lists is to us INDIRECT.

    You'd still need VBA to clear the secondary list if the primary entry is changed.

    See: https://www.contextures.com/xldataval02.html
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Valued Forum Contributor
    Join Date
    02-02-2016
    Location
    Indonesia
    MS-Off Ver
    Office 365
    Posts
    1,004

    Re: Making a drop down list from VBA?

    See if this discussion helps:
    https://www.excelforum.com/excel-gen...alidation.html

+ 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] Making a drop down list that makes a drop down list
    By almostgenius in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-26-2015, 05:52 PM
  2. Making a drop down list conditional
    By concretetsunami in forum Excel General
    Replies: 4
    Last Post: 04-30-2008, 08:46 PM
  3. [SOLVED] Making a drop down list/column
    By Max in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-06-2005, 09:05 PM
  4. Making a drop down list/column
    By Kim in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 PM
  5. [SOLVED] Making a drop down list/column
    By Kim in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  6. [SOLVED] Making a drop down list/column
    By Kim in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  7. [SOLVED] Making a drop down list/column
    By Kim in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-28-2005, 10:05 PM

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