+ Reply to Thread
Results 1 to 7 of 7

How do I create a "reset macro" to set my workbook back to start

Hybrid View

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    florida
    MS-Off Ver
    Excel 2011 mac
    Posts
    4

    How do I create a "reset macro" to set my workbook back to start

    I want a button that will reset my workbook, uncheck boxes, set qtys to 0, etc basically set it to exactly how I have it right now. Thanks for the help
    Attached Files Attached Files

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: How do I create a "reset macro" to set my workbook back to start

    Hi jamierat,

    See the attached workbook where I have done this on the first sheet and assigned the macro to the button which you had already created. Press Alt + F11 and check the module, its quite simple and you can easily amend the code for rest of the sheets

    Cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: How do I create a "reset macro" to set my workbook back to start

    This might do the trick
    Sub clear()
    Union(Range("B15:B30"), Range("F15:G30")).ClearContents
    End Sub

  4. #4
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: How do I create a "reset macro" to set my workbook back to start

    JieJenn, Union ?

    Range("B15:B30,F15:G30").ClearContents

  5. #5
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: How do I create a "reset macro" to set my workbook back to start

    Just a habit. Sometimes ranges can get too many for me.

  6. #6
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: How do I create a "reset macro" to set my workbook back to start

    Yeah Union or Range("B15:B30, F15:G30"); both works.

  7. #7
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: How do I create a "reset macro" to set my workbook back to start

    To be clear - it wasn't a question rather to express surprise at your usage of it.

+ 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