#1   Report Post  
jamess@therock
 
Posts: n/a
Default Custom Page Headers

I want to show the contents of a cell in the page header when I print the
document. Does anyone have a solution for this?
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.CenterHeader = ActiveSheet _
..Range("A1").Value
End Sub

---
Place this macro in the "ThisWorkbook" module.

HTH
Jason
Atlanta, GA

-----Original Message-----
I want to show the contents of a cell in the page header

when I print the
document. Does anyone have a solution for this?
.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
why would page 1 of an excel worksheet print smaller of page 2 if. hisdrama pest Excel Discussion (Misc queries) 1 January 10th 05 08:14 PM
Hidden page bracks in Excel should be deactivated Tonywww Excel Discussion (Misc queries) 0 December 21st 04 07:21 PM
How do I freeze or lock cells to show up on each page without typ. [email protected] Excel Discussion (Misc queries) 1 December 7th 04 06:22 AM
Page breaks don't show on screen and don't print separately. It i. Peter Excel Discussion (Misc queries) 1 November 29th 04 05:33 PM
how to print a row on the bottom of every page Punx Excel Discussion (Misc queries) 1 November 29th 04 05:20 PM


All times are GMT +1. The time now is 03:05 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"