+ Reply to Thread
Results 1 to 10 of 10

create a 'button' to click to clear cells

  1. #1
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    create a 'button' to click to clear cells

    hello all,

    now I have no idea if this can be done but what I would to do is create a 'button' in which I can click to clear cells.

    it is for an invoice - shave finished it and printed it out - I need a button to click In which will make it go back to the template state.

    look forward to your help!

    thanks

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: create a 'button' to click to clear cells

    Perhaps something like this? The macro clear all the data in the range A2:I30, in the sheet.

    Please Login or Register  to view this content.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Re: create a 'button' to click to clear cells

    wow - thanks for your quick reply!
    just - I am not very up and together on how to insert macros - could you tell me how to insert it!?
    many thanks!

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: create a 'button' to click to clear cells

    Take a look here to learn how to enable macros and see also mu example sheet!

    http://www.exceltrick.com/how_to/ena...cros-in-excel/
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Re: create a 'button' to click to clear cells

    many thanks - I will have a good read through.....thanks for your help!

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: create a 'button' to click to clear cells

    You are welcome and thanks for thefeed back & rep.

    As that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED,as per Forum Rule #9. Thank you.

  7. #7
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Re: create a 'button' to click to clear cells

    hi Fotis1991
    that's great - it worked! and I managed to add to it!! im learning slowly!

    just one more thing I would like it to do.........for it to change the invoice number everytime I click that button! its probably very simple but im not sure how to write it!

    would be glad of your (or anyones) help!!

    THANK YOU

  8. #8
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: create a 'button' to click to clear cells

    Where and how do you save the invoice that you create? Do you use another sheet as DataBase?

    Probably you don't need code for this. Just a formula.. Something like this...
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Assuming that in sheet3-column B is the column that you save your used Invoices Numbers.

    If something like this does not works for you, then it's better to upload a small sample workbook explaining what you need to do.

  9. #9
    Registered User
    Join Date
    09-27-2012
    Location
    Northampton, England
    MS-Off Ver
    excel 2016
    Posts
    64

    Re: create a 'button' to click to clear cells

    Many thanks!
    I kind of thought it might not be possible to save it but would be jolly useful if I could save the following detail from each invoice to a separate sheet:
    - Invoice Number
    - sales price
    - cost price (which I haven't got a column for that in my invoice sheet yet)
    - nominal code (which again I haven't got a column for that yet)

    that way I can then do reports on our invoice sales automatically?!

    if that can be done - would be great!

    I have attached a sample copy.
    Attached Files Attached Files

  10. #10
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: create a 'button' to click to clear cells

    All what you describe can be done,but is competely other issue.

    So my suggestion is to start a new thread asking for help, as also i have no time to look at this.

    Good luck.

+ 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. How to clear contents/delete rows on click of button
    By murchy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-03-2013, 09:11 AM
  2. Replies: 3
    Last Post: 06-05-2012, 04:36 AM
  3. Create a button to clear data in certain cells
    By headbanger51 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-07-2008, 03:18 AM
  4. [SOLVED] [SOLVED] Create floating button based on button click in menu
    By ExcelMonkey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-12-2005, 02:05 PM
  5. [SOLVED] Create a button to Clear Cells
    By tamato43 in forum Excel General
    Replies: 3
    Last Post: 05-15-2005, 10:06 PM

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