+ Reply to Thread
Results 1 to 6 of 6

Creating a reset button for a Invoice

  1. #1
    Registered User
    Join Date
    10-19-2008
    Location
    Tokyo
    MS-Off Ver
    MS Offuce 2019
    Posts
    45

    Creating a reset button for a Invoice

    Hi,

    I would like to create a "RESET" button which would reverse all the cells to back to the original state.

    As you can see in the attached file that in the "Original state", all the quantity starts with the amount of 1.
    All the values in the "PRICE" starts with the value 0, and the "ITEM" is always empty.

    If a customer comes I insert the "Item name" and the "price", and also change the quantity if needed.
    But after I am finished I would like to be able to have the sheet reversed back the "Original state" with a push of a "Command button".

    I guess I would need a macro to accomplish this, but I have never used one before.
    Could somebody help me with this please?

    RESET BUTTON.xlsx
    Last edited by artner0112; 01-21-2012 at 07:02 PM.

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: Creating a reset button for a Invoice

    Hello
    See the attached workbook to see if it does what you require. You'll have to allow macros when you open the file. I've added 3 named ranges Item; Price; Quantity to reference in the macro.

    Hope this helps
    Attached Files Attached Files
    Last edited by DBY; 01-21-2012 at 01:18 PM. Reason: Forgot to mention the named ranges

  3. #3
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Creating a reset button for a Invoice

    hi,
    maybe this
    Please Login or Register  to view this content.
    ps
    sorry DBY, not refresh before sending...
    Attached Files Attached Files
    Last edited by john55; 01-21-2012 at 12:14 PM. Reason: apologize
    Regards, John55
    If you have issues with Code I've provided, I appreciate your feedback.
    In the event Code provided resolves your issue, please mark your Thread as SOLVED.
    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

    ...enjoy -funny parrots-

  4. #4
    Registered User
    Join Date
    10-19-2008
    Location
    Tokyo
    MS-Off Ver
    MS Offuce 2019
    Posts
    45

    Re: Creating a reset button for a Invoice

    Thank you DBY and john55 for your help

  5. #5
    Valued Forum Contributor john55's Avatar
    Join Date
    10-23-2010
    Location
    Europe
    MS-Off Ver
    Excel for Microsoft 365
    Posts
    2,028

    Re: Creating a reset button for a Invoice

    you're welcome!

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Creating a reset button for a Invoice

    Your post does not comply with Rule 9 of our Forum RULES. If you solve a problem yourself before anyone else has responded, please take a moment to describe your solution, chances are some other member will benefit. And please never edit a thread in which someone else has responded.


    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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