+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Macro to record all sales over the week.

  1. #1
    Registered User
    Join Date
    04-21-2012
    Location
    Derby, UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Macro to record all sales over the week.

    Could someone please help me either create a formula or a macro for the spreadsheet, to be able to record all sales over the week for each invoice created and save the invoice on the weekly worksheet even once it has been cleared. Also on the ''invoice'' worksheet you will see invoice number does anyone know how to increase that number by 1 everytime the invoice is cleared.

    I have made a dummy spreadsheet to try and understand the concept behind how to create how to create this sort on macro.

    Any problems understanding how to use the spreadsheets please just reply back to this post.

    Please help me ASAP..

    Kind Regards
    Attached Files Attached Files

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Macro to record all sales over the week.

    The cells colored green are named cells and you will see the some of them are used in the macros.
    The cells in yellow have edited formulas, you may want to edit the cells so you don't get errors.
    Data validation is used for Customer Number.
    The main menu sheet images no longer have macros assign to them,instead hyperlinks are added to them
    To get you the assigned sheets.

    You will have to create a folder in the c:\ called Customer Invoices

    The code will copy the invoice sheet and pastespecial it into a new workbook saving it as the Invoice number and customer name. You can change that anyway you want.

    It will then save the invoice sheet as pdf and save it as the inv # and Customer Name.
    Then it calls the maro to send the info to the other sheet and after that call the macro to print the sheet and reset the sheet and add 1 to the invoice number.

    Click the little guy with the Wrench to get it going.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    04-21-2012
    Location
    Derby, UK
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Macro to record all sales over the week.

    Thankyou so much. One last thing, would there be any chance in creating a monthly and yearly worksheek, where excel automatically sums up the total for each month and week?

    Kind Regards

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480

    Re: Macro to record all sales over the week.

    You could add another column for the invoice dates then filter it as you need to.

+ 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