+ Reply to Thread
Results 1 to 9 of 9

Reset DropDown Menu after option changes

  1. #1
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    17

    Reset DropDown Menu after option changes

    Hi,

    I have a dropdown menu that gets it's options from a dynamic source. How do I set it so that when the selected is deleted from the source, the dropdown menu is reset to blank? Or preferably to a message such as "Please select..."

    Thanks,

    Anthony Bane

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Reset DropDown Menu after option changes

    Let's say your dynamic values that you are pulling from are in H17:H21 and your dropdown list is in I16

    Right click on the sheet tab>View code and paste this in
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you change anything in H17:H21, I16 clears.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Reset DropDown Menu after option changes

    Hi ChemistB,

    Thanks again for responding. How would I make this applicable to all dropdowns that I want, relative to their individual dynamic lists? In this instance the list size is always the same and so nothing to worry about, but the principle behind it is more important.

    Thank you,

    Anthony Bane

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Reset DropDown Menu after option changes

    Let's say you have a set of DD from I16:I20 dependent on H17:H21 and a second set of DD in J16:J20 dependent on K17:K21
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Reset DropDown Menu after option changes

    So what you are saying is that I must create a new segment for every single drop down that I create and that I cannot create a function that can be inserted into the datavalidation settings? This seems like such a clunky way of doing things if you have more than just a few drop downs. It means that I cannot copy/paste a template and must then recode it should a line be added or removed. Or does Excel automatically update?

    I am sorry for the questions but as I said, I am new to this.
    Last edited by ABane; 05-14-2014 at 12:53 PM.

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Reset DropDown Menu after option changes

    Only if each dropdown is unique to it's own range. I have 10 dropdowns covered in the code listed above.

  7. #7
    Registered User
    Join Date
    05-13-2014
    MS-Off Ver
    Excel 2003
    Posts
    17

    Re: Reset DropDown Menu after option changes

    The code I am now working with:

    Please Login or Register  to view this content.
    This works well for resetting the dropdown. However it resets after ANY change even if the selected menu option still exists. Is there a way of resetting ONLY if the option selected becomes invalid?

  8. #8
    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,463

    Re: Reset DropDown Menu after option changes

    Do you have a sample workbook that you can share with us?


    Regards, TMS
    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


  9. #9
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Reset DropDown Menu after option changes

    It will require much more code to become generic but you may use:
    Please Login or Register  to view this content.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

+ 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: 0
    Last Post: 08-28-2012, 05:39 AM
  2. [SOLVED] Excel 2007 : new drop down menu based on dropdown menu in previous cell
    By martinpols in forum Excel General
    Replies: 3
    Last Post: 04-30-2012, 02:33 AM
  3. Replies: 2
    Last Post: 08-11-2011, 01:32 AM
  4. Create Dropdown menu without using the Validation on the Data Menu
    By lostinformulas in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 07-13-2006, 03:47 PM
  5. reset option buttons
    By texicaliblues in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2005, 02:20 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