+ Reply to Thread
Results 1 to 2 of 2

populating an independent drop down with VBA

  1. #1
    Registered User
    Join Date
    12-11-2009
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    60

    populating an independent drop down with VBA

    I can't quite tell if this forum is for excel only vba, or if general vba questions can be asked, so I'll ask for forgiveness if it is excel only vba because this relates to a word document I'm working on.

    My question is: how does one create a drop down list using vba? I used to use this code for a set of dependent drop downs, but I now only need to populate one drop down list and the code doesn't translate over.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,441

    Re: populating an independent drop down with VBA

    the code looks like it's for two dropdowns where the second is populated dependent on first ones choice.
    So the above contains all the code you need.

    Please Login or Register  to view this content.
    you just need to make sure the control name is correct. Then change the text and quantity of .Add items
    Cheers
    Andy
    www.andypope.info

+ 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. 3 levels independent drop down lists
    By ohlalayeah in forum Excel General
    Replies: 1
    Last Post: 08-20-2012, 06:45 AM
  2. Populating a drop-down based on checkboxes
    By LampCommandr in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2011, 01:48 AM
  3. Auto-populating w/ if statements and a drop down box
    By thisiscrazy in forum Excel General
    Replies: 9
    Last Post: 10-12-2010, 06:15 PM
  4. Populating a drop down list
    By ChromiumBlue in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-14-2006, 01:49 PM
  5. Populating Drop-Down lists
    By gtanti in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-08-2006, 11:45 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