+ Reply to Thread
Results 1 to 3 of 3

Populating dropdowns using VBA

Hybrid View

MikeFranz123 Populating dropdowns using VBA 04-25-2012, 10:25 AM
arlu1201 Re: Populating dropdowns... 05-03-2012, 05:24 AM
royUK Re: Populating dropdowns... 05-03-2012, 08:00 AM
  1. #1
    Registered User
    Join Date
    03-09-2012
    Location
    Cape Town, South Africa
    MS-Off Ver
    Excel 2010
    Posts
    61

    Populating dropdowns using VBA

    Hi everyone,

    I'm trying to populate a dropdown box in excel using VBA.

    I have a dropdown already in excel, created using data validation, but its empty. What I want to do is, based on the value of another cell, populate this dropdown box with values using VBA. I realise that this can be done in excel, but, just for interest sake, and also as it would require a lot of manual input otherwise, I would like to do it using VBA.

    Any help would be great.
    Thanks!

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Populating dropdowns using VBA

    Do you have a sample file that you can upload?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Populating dropdowns using VBA

    You can use INDIRECT to populate it with different named ranges, no need for VBA.

    If you want vba again use named ranges & record a macro to get the general code
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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