+ Reply to Thread
Results 1 to 5 of 5

Thread: Print Simple Report from User form with Total.

  1. #1
    Valued Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Excel 2003, 2007
    Posts
    212

    Exclamation Print Simple Report from User form with Total.

    Hey sir,

    I have excel vba to maintain client account receivable.
    I can enter invoice details & I can enter new client details.

    But when I enter one invoice, it insert a column before Total row. So the total
    row keeps on moving down when you enter invoice.
    But I need printout including total row.

    Here I cannot set printout area with total row.

    Can anyone help me in this thread?

    Charles
    Attached Files Attached Files
    Last edited by ebin charles; 07-02-2011 at 10:33 AM.

  2. #2
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,300

    Re: Print Simple Report from User form with Total.

    Hi Charles,

    The total row keeps moving down because of the line:
    ws.Cells(lrow, 7).EntireRow.Insert
    in the userform1 code.

    I'm not sure if you want to leave this line out or expand your print area.
    One test is worth a thousand opinions.
    Click the * below to say thanks.

  3. #3
    Valued Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Excel 2003, 2007
    Posts
    212

    Re: Print Simple Report from User form with Total.

    Quote Originally Posted by MarvinP View Post
    Hi Charles,

    The total row keeps moving down because of the line:
    ws.Cells(lrow, 7).EntireRow.Insert
    in the userform1 code.

    I'm not sure if you want to leave this line out or expand your print area.
    Thank you for you response.

    But Is it possible if I name the TOTAL Row as " Total" and to set the
    print area to cover until the the name "TOTAL"?

    So I can expand my print area till the "TOTAL" area is reached.
    Is it possible?

    Regards
    Charles

  4. #4
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,300

    Re: Print Simple Report from User form with Total.

    Hi Charles,

    It looks like there are a lot of hits on this topic on the net.
    http://www.mrexcel.com/archive/Printing/30490.html
    http://excel-tips.blogspot.com/2008/...-in-excel.html - I like this one!
    http://www.teachexcel.com/excel-help...php?i=141660#4 for many examples.
    One test is worth a thousand opinions.
    Click the * below to say thanks.

  5. #5
    Valued Forum Contributor ebin charles's Avatar
    Join Date
    03-31-2010
    Location
    Dammam, Saudi Arabia
    MS-Off Ver
    Excel 2003, 2007
    Posts
    212

    Re: Print Simple Report from User form with Total.

    Thank you for such great idea.
    But I am not getting the TOTAL row with printable
    area.

    Is there any code to use?

    Regard
    Charles

+ 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.2.0