+ Reply to Thread
Results 1 to 2 of 2

Adding multiple comboboxes using VBA

  1. #1
    Registered User
    Join Date
    07-26-2010
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    1

    Unhappy Adding multiple comboboxes using VBA

    Hello all,

    I have created the attached matrix to help me priorities data collection of different datasets for a project I am working on.

    At the moment the user needs to type in values to complete the form, what I would like do is have a combo box/drop down box in each white cell so that there are only two options that the user can select from. So for example in cell D3 the user could only select Schools or Churches.

    Is there a way that this can be easily in VBA? I have tried to work my way round this using the Data Validation tool however it will not let me enter two cells in two different locations.

    I have thought that it might be possibleto count back from the active cell to work out the values that need be added to combo box (using AddItem?) but can't quite get my head round to how this can be done.

    I also looked at the solution herehttp://www.contextures.com/xlDataVal14.html) however I don't think I can use this as it uses the validation option (requiring a range) where as I need to enter two list values instead.

    Any help that can be given would be appreciated.

    Regards,

    Kevin
    Attached Files Attached Files

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,342

    Re: Adding multiple comboboxes using VBA

    Mab in the validation list box source value
    remove the $s and drag cells
    =$A$2:$A$3
    Becomes =a2:a3
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ 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