+ Reply to Thread
Results 1 to 2 of 2

Repeat dynamic rows when printing

  1. #1
    Registered User
    Join Date
    11-24-2014
    Location
    Sydney
    MS-Off Ver
    2007
    Posts
    2

    Repeat dynamic rows when printing

    I have searched internet but cannot seem to find any solution. Can anyone help please?

    In my project I need to calculate some data and put them into a table underneath some graphs and print the whole sheet including the graphs and the table. The number of the graphs may vary so the position of the table may vary too. For example sometimes the table starts at row 117, sometimes it starts at 182, or some other row. The table can be big so will need to be printed in more than one page, so I want to set up the table so that the top two rows of the table will repeat on the pages that contain the table. I know something like below will repeat rows but in my case the rows need to be dynamic. Can anyone tell me how to do it?

    With ActiveSheet.PageSetup
    .PrintTitleRows = "$184:$185"
    .PrintTitleColumns = ""
    End With

    Thanks in advance for any help!

    Rowena

  2. #2
    Registered User
    Join Date
    11-24-2014
    Location
    Sydney
    MS-Off Ver
    2007
    Posts
    2

    Re: Repeat dynamic rows when printing

    I've found the solution:

    With ActiveSheet.PageSetup
    .PrintTitleRows = Range(Cells(lr + 2, 1), Cells(lr + 3, 1)).EntireRow.Address
    .PrintTitleColumns = ""
    End With

    From here: http://www.ozgrid.com/forum/showthread.php?t=78502

+ 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. Replies: 1
    Last Post: 09-05-2013, 03:32 AM
  2. PRINTING : Repeat rows on bottom AND columns on right
    By canuckcrazy19 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-04-2013, 01:34 PM
  3. Replies: 2
    Last Post: 03-02-2013, 01:34 AM
  4. [SOLVED] Macro for auto printing. macro printing at same time 17:30 but do not repeat.
    By aburger in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-23-2013, 09:16 AM
  5. Row repeat when printing
    By dgkindy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-26-2009, 01:47 PM
  6. [SOLVED] Repeat printing rows in multiple worksheets
    By KevinG in forum Excel General
    Replies: 13
    Last Post: 05-23-2006, 04:10 PM
  7. Repeat rows on bottom when printing in Excel
    By Ivan Graff in forum Excel General
    Replies: 4
    Last Post: 04-24-2006, 04:30 PM
  8. Replies: 2
    Last Post: 08-24-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