+ Reply to Thread
Results 1 to 7 of 7

Show current selection in drop down menu

  1. #1
    Registered User
    Join Date
    04-09-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    25

    Show current selection in drop down menu

    Hi guys i am in assistance of your brilliant brains, i have a working drop down menu which when selected i can select my data range such as below:

    18/03/2009
    19/03/2009
    20/03/2009
    21/03/2009
    22/03/2009
    23/03/2009
    24/03/2009
    25/03/2009
    I am doing this by using a validation rule and having the source point to:
    Please Login or Register  to view this content.
    as a defined name.

    Now this works perfectly, the first date on my list is the 18/03/2009, when i change the date to something like 24/04/2009 and change it again it show me the first one on the list (18/03/2009), what i would like is when i click the drop down menu to select a different date it will show me the current selected date on the menu, so in the above case i will be looking at 24/04/2009 on the drop down menu and not 18/03/2009.

    Is this possible?

    Thanks
    Last edited by sandy.beach; 05-04-2009 at 05:15 PM. Reason: solved

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Show current selection in drop down menu

    That's how my drop-down validation lists from named ranges behave. Yours doesn't?

    Post up a sample sheet showing the bad behavior.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-09-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Show current selection in drop down menu

    Unfortunatly not, how weird, i have attached a sample, am i doing something wrong?

    Thanks for taking a look at this for me
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    04-01-2009
    Location
    Irvine, CA
    MS-Off Ver
    Excel 2010
    Posts
    280

    Re: Show current selection in drop down menu

    It sounds like he is looking for the drop down to act like a combo box.
    i.e. When you select an item in the combo box, that item is highlighted in the combo list (so you have 1,2,3,4,5 and 3 is selected, then the next combo list will start at 3,4,5).

    A combo box will do as you ask, but it converts dates to text/general so the date is not displayed. You could use a "text" conversion of your date for the combo list, but I don't know how that would affect the rest of your code.

  5. #5
    Registered User
    Join Date
    04-09-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Show current selection in drop down menu

    oh a text conversion is not too good, my formula's do not run how odd

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Show current selection in drop down menu

    Actually, Sandy, you tricked YOURSELF. Validation lists USUALLY show you the spot you've currently got selected when you reopen the list again. That's because of the "matching" nature to the way the display is handled.

    But you created a validation list of dates formatted as 1/1/2009 and then formatted the validation cell to display the chosen date as 1-Jan-09.

    That's not the same thing.

    Now, when I format your Date_Range with the same formatting, look how it behaves now....
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    04-09-2009
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Show current selection in drop down menu

    Thanks alot, it is all working now, how silly of me, such a stupid mistake, i had thought it was not an issue in the formatting of the dates since they are written the same lol.

    Thanks for your help

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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