+ Reply to Thread
Results 1 to 4 of 4

Print Area:last row is variable depending on how many rows

  1. #1
    Registered User
    Join Date
    08-30-2011
    Location
    Chicago, IL
    MS-Off Ver
    Office 2010
    Posts
    1

    Print Area:last row is variable depending on how many rows

    I have a table in my sheet that is linked to SQL database. When this table is refreshed, the number of rows can grow or shorten depending on the data.
    I need a macro that will set the print area from C3 to W(last row is variable depending on how many rows return from query).

    Any help is GREATLY appreciated!

  2. #2
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    re: Print Area:last row is variable depending on how many rows

    Hi mafiaxts4life
    Welcome to the forum.
    You may be able to adapt something like this to suit your needs:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    09-06-2011
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    2

    re: Print Area:last row is variable depending on how many rows

    Quote Originally Posted by barryleajo View Post
    Hi mafiaxts4life
    Welcome to the forum.
    You may be able to adapt something like this to suit your needs:

    Please Login or Register  to view this content.
    Thanks for above....
    I have data, and if F10 value is 120, print row upto 120, how?
    plz. guide.......

  4. #4
    Valued Forum Contributor
    Join Date
    06-19-2010
    Location
    Holywell, N Wales, UK
    MS-Off Ver
    Excel 2013
    Posts
    470

    re: Print Area:last row is variable depending on how many rows

    Hi hvg88
    Welcome to the forum
    Please take a moment to become familiar with our rules - especially rule 2
    http://www.excelforum.com/forum-rule...rum-rules.html
    When you post your own thread please fully describe your requirement e.g. in your case what is the full print range that you require to print, will this be variable and so on?
    Barry

+ 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