+ Reply to Thread
Results 1 to 4 of 4

Reset button to set all data to original settings

  1. #1
    Registered User
    Join Date
    01-16-2015
    Location
    Chesapeake, VA
    MS-Off Ver
    2013
    Posts
    18

    Reset button to set all data to original settings

    I have 5 sets of data ranging as follows on a worksheet named DATA1. The data is found at M2:P21, M25:P44, M48:67, M71:P90 and M94:P113. I would like to have a reset button on a sheet named MONDAY that, when pushed, resets all of the aforementioned cells to a status of "1". Can you assist me with this problem? I am very new to VBA and would need explicit instructions on where to place the VBA instructions for it to operate properly. Also, can it be programmed with a warning about "Are You Sure You Wish To Reset All Data?" Thanks in advance for your help.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 365 Win 11 Home 64 Bit
    Posts
    20,985

    Re: Reset button to set all data to original settings

    Try this:

    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Alan


    Have you debugged your code?
    Database Normalization
    What is Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-16-2015
    Location
    Chesapeake, VA
    MS-Off Ver
    2013
    Posts
    18

    Re: Reset button to set all data to original settings

    I had to make a few small changes...but it worked like a charm! Thanks so much for the guidance as well.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 365 Win 11 Home 64 Bit
    Posts
    20,985

    Re: Reset button to set all data to original settings

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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. Reset worksheet to original version, after VBA runs
    By KT99 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-17-2014, 03:49 PM
  3. Reset to original values in pivot table
    By lbabli in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-21-2014, 02:18 PM
  4. How to returning comments to original settings
    By joshen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-28-2013, 05:44 AM
  5. Help: Reset input data back to original
    By jasonj427 in forum Excel General
    Replies: 5
    Last Post: 01-22-2013, 01:49 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