+ Reply to Thread
Results 1 to 33 of 33

Marco that can quickly generate / print receipts from spreadsheet

  1. #1
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Marco that can quickly generate / print receipts from spreadsheet

    I have attached the file that I am referring to. It is used to print out receipts for an auction. It works well now and is fairly automated. My one issue is on the receipts sheet. The orange cell cycles through paddle numbers to show their respective receipts. Currently, if I want to print out every receipt, I need to click each paddle number individually and print. Fairly time-consuming and stressful (the receipts need to be handed out within 15 minutes of the conclusion of the auction) and it's fairly easy to skip over one.

    Is there a macro that can be added to just print out all the paddle numbers listed?
    Attached Files Attached Files

  2. #2
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Do you want to generate a receipt for all the Paddle numbers in column F of the Silent Auction sheet all at one go?
    You can say "THANK YOU" for help received by clicking the Star symbol at the bottom left of the helper's post.
    Practice makes perfect. I'm very far from perfect so I'm still practising.

  3. #3
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Yea exactly. I already have a print button for one receipt (when selected) and ideally would want another that just prints them all out

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Hi there,

    See if the attached workbook does the sort of thing you need - it uses the following code:

    Please Login or Register  to view this content.
    The highlighted values may be altered to suit your own needs.


    Incidentally, the formulas in the Receipts Table does not seem to update correctly for Paddle Nos 211, 212, 214, 215, 219 and 229.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M
    Attached Files Attached Files

  5. #5
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Try the attached file. I have made some changes I hope will work for you. You will notice 2 new tabs. One is a blank receipt template. The other holds the Paddle numbers used for the drop down in B7 of the Receipts sheet. On the Receipts sheet, when you select a Paddle in cell B7, the receipt will be populated automatically. Then you can click the "Print Single Receipt" button to print that one receipt. If you click the "Print All receipts" button, a receipt will be created and printed for all the Paddles listed in Silent Auction sheet. If you want to test the macros before printing, comment out the "Printout" line of code in the "PrintAllReceipts" macro.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    This is perfect. You even cleaned up some stuff outside of the receipt printing. Thank you so much!!!!

    PS when selecting someone who did not participate, a message pops up saying so. How do you go about editing the message's contents?

    Also instead of having a seperate "Paddles" sheet, would it just be possible to have the dropdown running off the paddle numbers from the "Guests" sheet?
    Last edited by templeowls; 04-22-2019 at 04:53 PM.

  7. #7
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    You are very welcome. To change the message, right click on the tab name "Receipts" and click "View Code". You will see the current message near the bottom of the macro. Change the text between the quotes to suit your needs. You can do away with the "Paddles" sheet by changing the reference in the data validation for cell B7 to the range in the "Guests" sheet.

  8. #8
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Sweet! Last question...I want to delete some of the receipt rows, as there's not really a need for that many. Plus it would give me more space to to wrap the text because the basket names can be a bit long. The issue is, if I delete rows, the total amount at the bottom disappears when I change to paddle #s

  9. #9
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Can you clarify in more detail what you mean by "when I change to paddle #s"?

  10. #10
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Sorry, when I use the dropdown on the top of the receipt to change the paddle #s. It seems when I make changes to the content on one Paddle #'s receipt, it doesn't change all of them.

  11. #11
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    I'm sorry but I still don't follow. When you select a Paddle from the drop down in B7 of "Receipts", the sheet is populated with the data for the chosen Paddle. What changes are you making? Please be specific referring to specific cells. When you say " it doesn't change all of them", what do you mean by "all of them"?

  12. #12
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Another issue that I found was that when "Print All" is selected, it generates a sheet for the receipt for every paddle number. Is there any way to get rid of this?

    Secondly, when print all is selected, the "winning bid" column is cut off, so it prints out 2 pages per receipt. This does not happen when Print Selected is pressed however.
    Last edited by templeowls; 04-24-2019 at 09:46 AM.

  13. #13
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Try the attached file.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Awesome. This worked perfectly. Last question I swear. This alludes to above.

    Any idea how to make sweeping changes to all the receipts? For instance, I'd like to delete rows 34-42 and then wrap the text on all the remain ones in case the basket name is long. But when I do this, it only changes the selected paddle #'s receipt.

    Similarly, the first 3 cells in the VALUE and WINNING BID column are currency and the remaining are accounting.

  15. #15
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Delete the desired rows and if you need to re-format the cells, just do so on the "Receipts" sheet and "Blank Receipts" sheet. Replace the previous 2 macros with these and save the file.
    Please Login or Register  to view this content.
    Last edited by Mumps1; 04-24-2019 at 10:50 AM.

  16. #16
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Sweet. Also just noticed that the GUEST ADDRESS is slotted in B5. Is there a quick way to get rid of that on the receipts?

  17. #17
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    In the worksheet code module, delete this line:
    Please Login or Register  to view this content.
    In the "PrintAllReceipts" macro, delete this line:
    Please Login or Register  to view this content.

  18. #18
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Perfect. Was able to do that. I am still having trouble deleting those extra rows (34-42). Am I just supposed to delete them on the worksheet and then replace the PRINTALL macro with the one you provided?

  19. #19
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Just right click on the row number on the left and click "Delete" on the menu that pops up.

  20. #20
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    yes but when I do that, the total at the bottom disappears on all the other receipts.

    Also I made some formatting changes, and everytime I do a PRINTALL, it prints out the old format and states that "merged cells need to be the same size"

    I attached my new format.
    Attached Files Attached Files

  21. #21
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Try the attached file.
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Perfect! You're a lifesaver! Thanks so much

  23. #23
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    You are very welcome. I forgot to mention that you should avoid merged cells at all cost because they create havoc for Excel macros.

  24. #24
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    I'm probably killing you, but when I change the dummy info on the receipt to actual info, it does not change when i select PRINT ALL...

  25. #25
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    What dummy info are you changing (in which cells)?

  26. #26
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Attached is a non-dummy version
    Attached Files Attached Files

  27. #27
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    What does not change when you select PRINT ALL?

  28. #28
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Anything that I change. It's the same as the dummy version

  29. #29
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    I don't follow. I ran the "PrintAllReceipts" macro and stopped so I could see the receipt for Paddle 107 and it displayed exactly as the "Blank Receipts" sheet with the data starting in row 19. What do you mean by the "dummy version"? There is nothing in the macro to link your non-dummy file to the dummy file so I don't see how anything that you change in the non-dummy version reverts back to the dummy version.

  30. #30
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Hmmm that's weird. I ended up just deleting what I was using and regrabbed the one you sent and was able to change the info. Must have just been a goof on my part

  31. #31
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    Is it working properly now?

  32. #32
    Registered User
    Join Date
    02-21-2019
    Location
    Philadelphia
    MS-Off Ver
    Office 2016
    Posts
    48

    Re: Marco that can quickly generate / print receipts from spreadsheet

    All good! Thanks again!!!

  33. #33
    Forum Expert Mumps1's Avatar
    Join Date
    10-10-2012
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010, 2013
    Posts
    7,820

    Re: Marco that can quickly generate / print receipts from spreadsheet

    My pleasure.

+ 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. Individual private lender wants spreadsheet to track mortgage note receipts
    By Carol Ann in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 03-26-2015, 02:28 PM
  2. Replies: 2
    Last Post: 03-24-2015, 09:48 PM
  3. Replies: 2
    Last Post: 02-13-2012, 09:39 AM
  4. Generate Receipts based on List
    By vandanavai in forum Excel General
    Replies: 1
    Last Post: 12-17-2007, 10:07 AM
  5. Can I generate receipts from excel?>
    By piersuk in forum Excel General
    Replies: 1
    Last Post: 04-04-2007, 05:52 PM
  6. How to goto a spreadsheet quickly
    By qvyn in forum Excel General
    Replies: 1
    Last Post: 10-02-2005, 02:35 PM
  7. how to print receipts from excell
    By wolfmasterr in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 06-16-2005, 12:05 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