+ Reply to Thread
Results 1 to 7 of 7

Printing Only Rows With Values

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    South Florida
    MS-Off Ver
    MS 2010
    Posts
    6

    Printing Only Rows With Values

    I am currently using a simple Excel workbook with 3 sheets. One sheet is called Quote, the other Receipt and the final one is my customer list that I have named Clients.

    On my order sheet, I have a list of 25 items (on separate rows with pricing) that I regularly purchase from my clients. I am in the metal recycling business so on this "Quote" sheet I have 4 grades of copper scrap, 3 grades of aluminum scrap, 6 grades of iron, etc. When a customer comes in, I use a drop down menu in the Quote sheet to bring up the customer info and populate the customer's info from the Client sheet. I then proceed to enter the quantity of different scrap that they have brought in and use the Quote sheet to figure what I will pay for the scrap. If the customer agrees, I click over to the Receipt sheet and print out the receipt that I have designed using the data from the Quote sheet. The receipt shows weight, type of scrap, price per pound, total per item and grand total.

    My problem comes when I print. My Receipt sheet looks identical to my Quote sheet except it has my company name at the top and logo. All 25 rows with the different types of scrap are on there (and being printed) whether they are part of that particular purchase or not.

    My question is, using the descriptions and pricing from my Quote sheet, how can I populate my Receipt with just the items that I am purchasing instead of all 25? In other words, if the quote has only 3 items one it, I want to just print those 3 items with their corresponding data.

    I appreciate the help.
    Thank you,
    Joe
    Last edited by FourNines; 12-26-2011 at 10:32 AM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Printing Only Rows With Values

    Hi Joe,

    You should upload a sample workbook (fake the data) that is duplicate in structure of the real workbook and show an example of the desired output (use another sheet if necessary to show a "before" and "after" example so it is clear to those who will help with the solution.

    Depending on the workbook, it may just be a formula solution. If VBA is required, is that an option for you?
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,317

    Re: Printing Only Rows With Values

    Possibly running this code before printing...
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    12-21-2011
    Location
    South Florida
    MS-Off Ver
    MS 2010
    Posts
    6

    Re: Printing Only Rows With Values

    Thank you for taking the time to answer my question. I have uploaded a similar workbook.

    Scrap Quotes.xlsx

  5. #5
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,317

    Re: Printing Only Rows With Values

    I took the liberty of reformatting the receipt to accommodate the code I wrote for populating the form.
    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-21-2011
    Location
    South Florida
    MS-Off Ver
    MS 2010
    Posts
    6

    Re: Printing Only Rows With Values

    dangelor,
    That's perfect. I really appreciate the time you took to solve my request. Kudos!
    Regards,
    Joe

  7. #7
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    MS365 V.2406
    Posts
    2,317

    Re: Printing Only Rows With Values

    Glad I could help. Enjoy the season!

+ 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