ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Header/Footer (https://www.excelbanter.com/excel-discussion-misc-queries/159579-header-footer.html)

pjy

Header/Footer
 
In Excel 2003, how do I make the header different on the first page? I want
to have different text - not page numbering.

Ron de Bruin

Header/Footer
 
Only possible with a macro
See
http://www.rondebruin.nl/print.htm#not


--

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


"PJY" wrote in message ...
In Excel 2003, how do I make the header different on the first page? I want
to have different text - not page numbering.


pjy

Header/Footer
 
Thanks for your website - but I DO want it to print on each page, however, I
need the text to be different on page 1 than it is on the pages following.

"Ron de Bruin" wrote:

Only possible with a macro
See
http://www.rondebruin.nl/print.htm#not


--

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


"PJY" wrote in message ...
In Excel 2003, how do I make the header different on the first page? I want
to have different text - not page numbering.



Ron de Bruin

Header/Footer
 
Very easy

Sub Test()
Dim TotPages As Long
TotPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
With ActiveSheet.PageSetup
.RightHeader = "Your Header info of page 1"
ActiveSheet.PrintOut From:=1, To:=1
.RightHeader = "your header info for all other pages"
ActiveSheet.PrintOut From:=2, To:=TotPages
End With
End Sub



--

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


"PJY" wrote in message ...
Thanks for your website - but I DO want it to print on each page, however, I
need the text to be different on page 1 than it is on the pages following.

"Ron de Bruin" wrote:

Only possible with a macro
See
http://www.rondebruin.nl/print.htm#not


--

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


"PJY" wrote in message ...
In Excel 2003, how do I make the header different on the first page? I want
to have different text - not page numbering.



pjy

Header/Footer
 


"Ron de Bruin" wrote:

Very easy

Sub Test()
Dim TotPages As Long
TotPages = Application.ExecuteExcel4Macro("GET.DOCUMENT(50)")
With ActiveSheet.PageSetup
.RightHeader = "Your Header info of page 1"
ActiveSheet.PrintOut From:=1, To:=1
.RightHeader = "your header info for all other pages"
ActiveSheet.PrintOut From:=2, To:=TotPages
End With
End Sub



--

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


"PJY" wrote in message ...
Thanks for your website - but I DO want it to print on each page, however, I
need the text to be different on page 1 than it is on the pages following.

"Ron de Bruin" wrote:

Only possible with a macro
See
http://www.rondebruin.nl/print.htm#not


--

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


"PJY" wrote in message ...
In Excel 2003, how do I make the header different on the first page? I want
to have different text - not page numbering.

Thanks, I'll give it a try



All times are GMT +1. The time now is 12:36 PM.

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