+ Reply to Thread
Results 1 to 4 of 4

Set value in multiple dropdown boxes

  1. #1
    Registered User
    Join Date
    02-11-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    19

    Set value in multiple dropdown boxes

    I have a sheet with multiple dropdown boxes (form controls, not ActiveX). There's a dropdown at the top of the page with a list of people's names, and then each line item on the sheet has a dropdown with the same list of names. I would like for the user to select a name from the top dropdown, click a button, and have ALL the rest of the dropdowns on the page set themselves to the same name. (The user will then make individual selections on the various line items that need to have a different name selected. For the purposes of what we're doing, each line item is a task that needs to be assigned to a certain person. Most of them will be performed by the person chosen in the top dropdown, but some of them will be performed by someone else, hence the need for the dropdowns.)

    What I can't figure out is how to set or rest a whole bunch of dropdowns at once. This is what I was playing with:

    Please Login or Register  to view this content.
    But of course I get "Run-time error '438': Object doesn't support this property or method." Is there a way to set the value of multiple dropdowns at once?

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Set value in multiple dropdown boxes

    Hi,

    Look for "Cascading Dropdowns". I think this is what you are asking for. See:
    http://www.bluepecantraining.com/por...ists-in-excel/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Set value in multiple dropdown boxes

    Assign this macro to the one "main" dropdown that affects the others.

    Please Login or Register  to view this content.
    You may want to consider using Data Validation lists instead of DropDown controls.
    Last edited by AlphaFrog; 03-05-2014 at 10:35 AM.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  4. #4
    Registered User
    Join Date
    02-11-2014
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Set value in multiple dropdown boxes

    Thank you AlphaFrog, that was just what I was looking for. Unfortunately I don't think I can use data validation due to a whole lot of other jazz that's going on in the same sheet, but this works great. Thanks again!

+ 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. Replies: 3
    Last Post: 02-20-2013, 12:54 AM
  2. Dropdown boxes
    By Tony McGuire in forum Excel General
    Replies: 5
    Last Post: 04-21-2009, 03:09 PM
  3. Dropdown boxes!
    By Rubes in forum Excel General
    Replies: 2
    Last Post: 04-16-2009, 10:02 AM
  4. [SOLVED] Dropdown Boxes again
    By Col in forum Excel General
    Replies: 2
    Last Post: 02-09-2006, 06:20 PM
  5. Multiple Dropdown Boxes
    By Jenny Ridgway in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-24-2005, 12:32 PM

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