+ Reply to Thread
Results 1 to 5 of 5

How to update already selected drop-own menu options.

  1. #1
    Registered User
    Join Date
    12-31-2014
    Location
    Houston,TX
    MS-Off Ver
    2013
    Posts
    3

    How to update already selected drop-own menu options.

    Howdy all,

    I'm not sure if this is even possible, but I figured this would be a good place to ask since I can't seem to find anything on my own.

    I have a drop down menu based on a list and I have used conditional formatting to set each option to a different color background when selected.

    Currently, if "Option A" is already selected, and I go to the list and change the name from "Option A" to "Something", the cell with "Option A" already selected loses its background color and continues to show "Option A". And then if I go to the drop-down menu again and select "Something" (where "Option A" used to be), it will say "Something" and the color will be correct.

    So, does anyone know of a way that would automatically update the cell with "Option A" to say "Something" and keep the background color without having to reselect it after the name is changed in the list?

    Thanks ahead of time,

    Kevin

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,758

    Re: How to update already selected drop-own menu options.

    First, what is your conditional formatting rule? Does the rule compare the selected value to a cell in the data validation list range? That is, suppose your list is in D1:D5 and you have the dropdown in A1. Does your CF rule look like:

    =A1="Option A"

    or is it

    =A1=D1

    In any case, the only way to force the selection to update if you make a change in the list is to use macros. I can help further with that but it would be much easier to do this with your file, rather than starting from scratch and producing a solution that may or may not match your situation.
    Jeff
    | | |·| |·| |·| |·| | |:| | |·| |·|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Registered User
    Join Date
    12-31-2014
    Location
    Houston,TX
    MS-Off Ver
    2013
    Posts
    3

    Re: How to update already selected drop-own menu options.

    Thanks for the reply Jeff.

    The CF rule is =A1=D1.

    I was hoping to avoid macros in this workbook but I have already had to use them anyway for a different reason.

    I will upload the project shortly so you can take a look at it.

    Thanks for the help,

    Kevin

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2502
    Posts
    26,758

    Re: How to update already selected drop-own menu options.

    Here is a VBA solution.

    When the user changes a value in the list, that means you have to search for the old value from the validation list and then substitute the new value. THe problem is that after the user changes it, the old value isn't there anymore. Therefore I added a column next to the validation list to capture the "before" values. After the substitution is made, then the macro updates the "before" value to the new value.

    The ProjectNames sheet is now protected to prevent accidental updating of the new second column. Column A is still unlocked to make any changes you want.

    One condition that may give you a problem is if you delete an existing project name from the list. If you delete it and leave a blank cell, no substitution will be made and the old project name will still be on the first sheet if it was selected.

    Please test using realistic scenarios and let me know how it works for you. If you have any issues (not new requirements) I will continue to support the file for a month.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    12-31-2014
    Location
    Houston,TX
    MS-Off Ver
    2013
    Posts
    3

    Re: How to update already selected drop-own menu options.

    Awesome, that is exactly what I needed. I had been on a similar track using a second column with the previous values, but I had done over 100 lines of code and it was still buggy. Thanks so much!

+ 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. [SOLVED] Drop down menu, with editable options
    By fallenmathi in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-18-2012, 07:23 PM
  2. Drop down menu, with editable options
    By fallenmathi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-17-2012, 07:22 PM
  3. Drop Down Menu Options?
    By ibo4lyf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2008, 12:20 AM
  4. Drop-down menu options
    By conksu in forum Excel General
    Replies: 3
    Last Post: 04-27-2006, 02:15 PM
  5. [SOLVED] How do I increase the font of my drop-down menu options?
    By heliu8 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-14-2005, 02:10 PM

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