+ Reply to Thread
Results 1 to 5 of 5

show and hide lines in a quote or invoice

  1. #1
    Registered User
    Join Date
    04-28-2010
    Location
    johannesburg south africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    show and hide lines in a quote or invoice

    I have a price list which i will use to quote prices. I want to set a line to not appear in printing if the item in it is not used. eg:

    desc unit price qty price
    a 20 2 40
    b 40 0 0
    c 25 1 25

    subtotal 65
    tax 9.1
    total 74.1

    Item B line should not appear in the print, as the quantity is zero.

  2. #2
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: show and hide lines in a quote or invoice

    How about filtering the Quantity column and then filter out the zeros before printing?

  3. #3
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: show and hide lines in a quote or invoice

    Something like this:

    Please Login or Register  to view this content.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

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

  4. #4
    Registered User
    Join Date
    04-28-2010
    Location
    johannesburg south africa
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: show and hide lines in a quote or invoice

    Quote Originally Posted by Domski View Post
    Something like this:

    Please Login or Register  to view this content.

    Dom
    this looks like it makes sense, but i can't see how to apply it. i pasted it into the vb editor, not too sure where i edit it for row or column selection, etc.

    Basically, if the value in column c is zero, i want that line to not appear. any more help?

  5. #5
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: show and hide lines in a quote or invoice

    Just change these lines to reflect the rows and column you want to apply it to:

    Please Login or Register  to view this content.

    Dom

+ 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