+ Reply to Thread
Results 1 to 13 of 13

Button creation to reset values from drop down lists

  1. #1
    Registered User
    Join Date
    03-23-2017
    Location
    Midlands
    MS-Off Ver
    2013
    Posts
    6

    Button creation to reset values from drop down lists

    Hello there, I am new to this forum and was hoping someone could shed some light on the slight confusing situation I currently find myself in.

    I have been tasked with creating an easy to use pricing system for an upcoming show allowing quick and accurate quotations for customers. I have created several drop down menus to correspond with the many options available. What I would like to do, if its possible, is to create a button in the spreadsheet that will reset the information within my drop down lists to the "No Selection Made" choice thus resetting all costs.

    Is this possible? If so, how would I go about making this a reality?

    Thanks in advance.

  2. #2
    Registered User
    Join Date
    03-17-2017
    Location
    Hell
    MS-Off Ver
    2010
    Posts
    172

    Re: Button creation to reset values from drop down lists

    Try:

    Sub VBA_Clear_Contents_Range()
    Range("A2:D10").ClearContents
    End Sub

  3. #3
    Registered User
    Join Date
    03-23-2017
    Location
    Midlands
    MS-Off Ver
    2013
    Posts
    6

    Re: Button creation to reset values from drop down lists

    Hi Lewis, will that clear all contents within the sheet? By this I refer t formulas currently in place.

  4. #4
    Registered User
    Join Date
    03-17-2017
    Location
    Hell
    MS-Off Ver
    2010
    Posts
    172

    Re: Button creation to reset values from drop down lists

    The formulas are getting results from cells. Set the range to clear the data not the formulas.

  5. #5
    Registered User
    Join Date
    03-23-2017
    Location
    Midlands
    MS-Off Ver
    2013
    Posts
    6

    Re: Button creation to reset values from drop down lists

    Agreed, clear data not formulas, exactly what I was wanting to do. I have set the range according to my sheet however am at a loss as to how to get it to work by means of a button.

  6. #6
    Registered User
    Join Date
    03-17-2017
    Location
    Hell
    MS-Off Ver
    2010
    Posts
    172

    Re: Button creation to reset values from drop down lists

    Insert a shape and assign the macro to it.

  7. #7
    Registered User
    Join Date
    03-23-2017
    Location
    Midlands
    MS-Off Ver
    2013
    Posts
    6

    Re: Button creation to reset values from drop down lists

    I tried that however macros have been disabled, guess I should have led with that. Cant use ActiveX either as most of the people using the sheet are on apple based products.

  8. #8
    Registered User
    Join Date
    03-17-2017
    Location
    Hell
    MS-Off Ver
    2010
    Posts
    172

    Re: Button creation to reset values from drop down lists

    save the file as macro enabled xlsm

  9. #9
    Registered User
    Join Date
    03-23-2017
    Location
    Midlands
    MS-Off Ver
    2013
    Posts
    6

    Re: Button creation to reset values from drop down lists

    Ok so I got that to work, it clears the contents completely, however instead of clearing completely can I get it to enter an option instead, for example "No Selection Made"

  10. #10
    Registered User
    Join Date
    03-17-2017
    Location
    Hell
    MS-Off Ver
    2010
    Posts
    172

    Re: Button creation to reset values from drop down lists

    You can use highlight cell rules for that. I like to do this way for example. Make the cells red until data is in there. That forces the user to enter something.

  11. #11
    Registered User
    Join Date
    03-23-2017
    Location
    Midlands
    MS-Off Ver
    2013
    Posts
    6

    Re: Button creation to reset values from drop down lists

    The soon to be users want something a little more corporate than that.

    Is there a command I can add to the existing macro that will enter a preferred word into the cleared cell space?

  12. #12
    Registered User
    Join Date
    03-17-2017
    Location
    Hell
    MS-Off Ver
    2010
    Posts
    172

    Re: Button creation to reset values from drop down lists

    Yes use a formula in the highlight cell rules. You have flexibility there.

  13. #13
    Registered User
    Join Date
    03-17-2017
    Location
    Hell
    MS-Off Ver
    2010
    Posts
    172

    Re: Button creation to reset values from drop down lists

    Maybe someone here has spare time

+ 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. Reset Button for Data validation lists
    By mcjohn in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-29-2019, 05:28 PM
  2. Dependent Drop Down lists reset
    By allheilyb1 in forum Excel General
    Replies: 13
    Last Post: 10-22-2014, 08:07 PM
  3. Part-number creation from drop down lists
    By ashmanning in forum Excel General
    Replies: 3
    Last Post: 07-25-2014, 05:22 PM
  4. [SOLVED] Sum Drop Lists, If Value Not Between Defined Range Display Error and Reset
    By UnreadSix in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-27-2014, 03:21 PM
  5. [SOLVED] Reset Drop Lists When Click on first list
    By work4nutz in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-29-2013, 02:43 PM
  6. [SOLVED] Dependent Drop Down Lists, Data Validation, Reset Dependents
    By daxlyon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2013, 11:15 AM
  7. Replies: 2
    Last Post: 12-17-2012, 04:04 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