+ Reply to Thread
Results 1 to 4 of 4

How to print a header row on all but first page.

  1. #1
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421

    How to print a header row on all but first page.

    I have a database that starts on row 10 with header information in row 9 explaining the purpose of the data for each column. In rows 1 through 8 I have general information that when I print the database - I would want on the first printed page (as well as the beginning rows of the database) and have the remaining print pages be the remaining portions of the database but have the header row (row 9) at the top of each - like a header row.

    I know how to goto FILE > PAGE SETUP > SHEET > ROWS TO REPEAT AT TOP: - but this will put row 9 at the top of ALL pages...which I want, but not on the first page.

    Any suggestions? I'm ok with making a print button with a macro...but no idea where to begin with the vba code to do this.

    Thanks,

    GuruWannaB
    Last edited by GuruWannaB; 10-24-2008 at 09:53 AM.

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good evening GuruWannaB

    This is not actually that easy to do. You need to do it in two stages. The first stage prints out page 1 without the titles. The next stage inserts the titles like this :
    Please Login or Register  to view this content.
    and then prints from page 2 onwards.

    Have a look at John McGimpsey's examples here with headers and footers. If you really can't figure it I will help further - just not now 'cos it's bedtime.

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421
    Perfect! Thank you...didn't think about breaking the print process down in two stages - too far into the box I guess. Thanks again.

  4. #4
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421
    Here is the code I ended up using - for anyone needing to something similar.

    Please Login or Register  to view this content.

+ 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