+ Reply to Thread
Results 1 to 8 of 8

Automatically Printing rows 1-5, then 6-10 etc. per page

  1. #1
    Registered User
    Join Date
    03-21-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    19

    Automatically Printing rows 1-5, then 6-10 etc. per page

    Hi,

    I have an excel list of 750 family addresses that a charity will be delivering Thanksgiving dinners to. I need to hand a page of 5 families to 150 different drivers.

    Is there a way to automatically print rows 1-5 on one page, then 6-10 on the next page etc. until all 750 families are printed?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Automatically Printing rows 1-5, then 6-10 etc. per page

    You could adjust the bottom margin so it breaks that way.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-21-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Automatically Printing rows 1-5, then 6-10 etc. per page

    Thanks for suggestions.

    That works. Trouble is that some of the address lines have a large amount of text describing the family. So some pages show 2 families on a page some 5 while using this page margin method.

    If there are other suggestions on keeping 5 rows per page would love to know.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Automatically Printing rows 1-5, then 6-10 etc. per page

    assuming no header row

    Please Login or Register  to view this content.
    will set the page breaks every 5th row
    no guarantee it works adapted from my archived code snippets but looks ok on a book i set up
    Last edited by martindwilson; 11-16-2013 at 03:31 PM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Automatically Printing rows 1-5, then 6-10 etc. per page

    Go, Martin

  6. #6
    Registered User
    Join Date
    03-21-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Automatically Printing rows 1-5, then 6-10 etc. per page

    Thank you, I'm excited to try! Will this work on a Mac and if so do you know instructions on how to use the code, or should I find a PC...

  7. #7
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Automatically Printing rows 1-5, then 6-10 etc. per page

    no idea about mac! sorry

  8. #8
    Registered User
    Join Date
    03-21-2011
    Location
    Chicago
    MS-Off Ver
    Excel 2003
    Posts
    19

    Re: Automatically Printing rows 1-5, then 6-10 etc. per page

    Works great thank you!

    Was able to do this on the Mac also. Tools > Macros > Visual Basic Editor > Paste > Run


    Also here's another set of code.

    Sub formatSheets()

    For i = 5 To 750 Step 5
    ActiveSheet.HPageBreaks.Add Before:=Cells(i + 1, 1)
    Next
    End Sub

+ 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. How to copy format of previous printing-page and apply to the next printing-page?
    By Morrigan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-25-2013, 06:01 PM
  2. Replies: 0
    Last Post: 12-14-2011, 04:20 PM
  3. Printing - different rows at top for each page
    By kestrel in forum Excel General
    Replies: 1
    Last Post: 07-25-2006, 08:15 AM
  4. Printing Frozen Cells Automatically on every page
    By gin2000 in forum Excel General
    Replies: 2
    Last Post: 07-17-2006, 01:14 PM
  5. Printing rows on every page
    By SusieQ in forum Excel General
    Replies: 1
    Last Post: 02-01-2006, 01:10 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