Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Setup / June 2007

Tip: Looking for answers? Try searching our database.

Column headers appearing on every page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Craig G - 07 Jun 2007 11:35 GMT
When using page breaks, my column headers appear on the top of each page.  

However I want to the last page of the the sheet to not show these headers
but cannot find a way to do this.

Please note these are column headers and not 'header/footer' headers.

Any help would be appreciated!

Thanks
Craig
Gord Dibben - 07 Jun 2007 17:04 GMT
Craig

I assume you have "rows to repeat at top" set to row 1 which is your title row.

With this setting it all or nothing unless you employ some VBA.

Here is a revision of a Ron de Bruin macro which will suppress the title row on
last page.

Sub Test()
Dim TotPages As Long
   TotPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
   With ActiveSheet.PageSetup
       .PrintTitleRows = "$1:$1"
          ActiveSheet.PrintOut From:=1, To:=TotPages - 1
       .PrintTitleRows = False
       ActiveSheet.PrintOut From:=TotPages, To:=TotPages
   End With
End Sub

Gord Dibben  MS Excel MVP

>When using page breaks, my column headers appear on the top of each page.  
>
[quoted text clipped - 7 lines]
>Thanks
>Craig
Craig G - 11 Jun 2007 11:32 GMT
That's great.  Thanks Gord!

Craig

> Craig
>
[quoted text clipped - 29 lines]
> >Thanks
> >Craig
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.