+ Reply to Thread
Results 1 to 6 of 6

Reset Button for Data validation lists

  1. #1
    Registered User
    Join Date
    09-29-2009
    Location
    vancouver, bc
    MS-Off Ver
    Excel 2007
    Posts
    9

    Reset Button for Data validation lists

    Hi,

    I'll simplify my problem to this example:

    Say there is three drop down lists created from data validation in sheet1 (say in cell A10, B10 and C10 and the data in each list is used to modify cell A1 (say default is a number 1) above with various conditional if statements. So cell A1 will change based on whatever is selected from these 3 drop down lists (multiply by this, add that, etc.). That is all setup fine. Now what if I want to create a button or something else clever that by clicking on it resets all the data validation lists to their first selection, how would I do this? So list1 might currently have option 4 selected, list 2 option 7, list 3 option 9 or whatever, and hitting this reset button puts them all back to their first choice (but still allows you to continuously select the options or reset repeatedly if wanted).

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Reset Button for Data validation lists

    Adapt as required.

    Please Login or Register  to view this content.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    09-29-2009
    Location
    vancouver, bc
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Reset Button for Data validation lists

    Thanks for response!

    I've attached it to a option form control button and am wondering how can I make the lists reset specifically to the top item in each list (assume each list can be of different length), or if that is too hard, how can i make it equal to a specific cell I can put into the macro. So instead of Range("A10").Value = 1 it is = cell A50 or something. (But I'd rather it just equal to the top of each list). Cheers!

  4. #4
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: Reset Button for Data validation lists

    see the sample attached. Hit the Reset button.
    does that help?
    modytrane
    Attached Files Attached Files

  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Reset Button for Data validation lists

    I've attached it to a option form control button and am wondering how can I make the lists reset specifically to the top item in each list (assume each list can be of different length), or if that is too hard, how can i make it equal to a specific cell I can put into the macro. So instead of Range("A10").Value = 1 it is = cell A50 or something. (But I'd rather it just equal to the top of each list). Cheers!
    You should use a command button - not an option button. Option buttons should be used only for making a specific choice among several availabel choices.

    Replace below text inside quotes with the actual text of the first item in the validation list for each of the cells.

    Sub reset()

    Range("A10").Value = "First Item in List for this cell"
    Range("B10").Value = "First Item in List for this cell"
    Range("C10").Value = "First Item in List for this cell"

    End Sub

  6. #6
    Registered User
    Join Date
    01-29-2019
    Location
    windhoek, namabia
    MS-Off Ver
    16
    Posts
    1

    Re: Reset Button for Data validation lists

    Thank you ;->
    Much appreciated

+ 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