ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can a Header start on the 2nd page in Excel? (https://www.excelbanter.com/excel-discussion-misc-queries/100669-can-header-start-2nd-page-excel.html)

mindela85

Can a Header start on the 2nd page in Excel?
 
I want to start a header on the 2nd page and not have it on the 1st. Is that
possible in Excel?

Marcelo

Can a Header start on the 2nd page in Excel?
 
hi,

just with VB.

copy this module (change to your header text)
print the first time, execute this code, print the other pages.

hth
regards from Brazil
Marcelo

******************************************
Sub Header()
With ActiveSheet.PageSetup
.PrintTitleRows = ""
.PrintTitleColumns = ""
End With
ActiveSheet.PageSetup.PrintArea = ""
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = "your header here"
.RightHeader = ""
.LeftFooter = ""
.CenterFooter = ""
.RightFooter = ""
.LeftMargin = Application.InchesToPoints(0.787401575)
.RightMargin = Application.InchesToPoints(0.787401575)
.TopMargin = Application.InchesToPoints(0.984251969)
.BottomMargin = Application.InchesToPoints(0.984251969)
.HeaderMargin = Application.InchesToPoints(0.492125985)
.FooterMargin = Application.InchesToPoints(0.492125985)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.PrintQuality = 600
.CenterHorizontally = False
.CenterVertically = False
.Orientation = xlPortrait
.Draft = False
.PaperSize = xlPaperLetter
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = 100
.PrintErrors = xlPrintErrorsDisplayed
End With

End Sub
******************************************



"mindela85" escreveu:

I want to start a header on the 2nd page and not have it on the 1st. Is that
possible in Excel?


Ron de Bruin

Can a Header start on the 2nd page in Excel?
 
Hi mindela85

Only if you print with code
http://www.rondebruin.nl/print.htm#Header

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



"mindela85" wrote in message ...
I want to start a header on the 2nd page and not have it on the 1st. Is that
possible in Excel?





All times are GMT +1. The time now is 10:21 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com