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 / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Rows to repeat at top Except for the  last page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nenzax - 24 Jan 2006 16:51 GMT
Hi all,

I have a excel sheet with 3 sections and i have setup the "Row to
repeat at top" to a row in the pagesetup.

how do i go about removing the property(Row to repeat at top) in the
page where the second section ends progrmatticaly.

i dont want the rows headers appearing in all the pages.

Thanks
Nen
Ron de Bruin - 24 Jan 2006 16:59 GMT
Hi

Try this one

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 = ""
       ActiveSheet.PrintOut From:=TotPages, To:=TotPages
   End With
End Sub

Signature

Regards Ron de Bruin
http://www.rondebruin.nl

> Hi all,
>
[quoted text clipped - 8 lines]
> Thanks
> Nen
 
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.