#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Header in Excel

I would like to make a cell in a worksheet the header on all the worksheets
in the workbook. Is this possible and if so how?

Thanks,
Cheryl
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Header in Excel

I've done this with a Workbook_Before print event

I'll copy one of mine in and you can modify it as necessary. Note that I
used some named ranges that were defined within the workbook.

Application.ScreenUpdating = False
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = "Company Proprietary"

.RightHeader = ""
.LeftFooter = Range("ToolName").Text & Chr(10) & _
"Issue Date: " & Range("Issue_Date").Value & Chr(10) & _
"Issue Number: " & Range("IssueNumber").Value

.CenterFooter = "Company Proprietary" '& Chr(10) & "&P of &N"
.RightFooter = ""
.CenterHorizontally = True
.CenterVertically = False
End With
Application.ScreenUpdating = True
End Sub

Press CTRL F11 and add this to the "ThisWorkbook" Excel Object.

"teddybr218" wrote:

I would like to make a cell in a worksheet the header on all the worksheets
in the workbook. Is this possible and if so how?

Thanks,
Cheryl

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default Header in Excel

CTRL+F11 or ALT+F11 ?
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Barb Reinhardt" wrote in message
...
I've done this with a Workbook_Before print event

I'll copy one of mine in and you can modify it as necessary. Note that I
used some named ranges that were defined within the workbook.

Application.ScreenUpdating = False
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = "Company Proprietary"

.RightHeader = ""
.LeftFooter = Range("ToolName").Text & Chr(10) & _
"Issue Date: " & Range("Issue_Date").Value & Chr(10) & _
"Issue Number: " & Range("IssueNumber").Value

.CenterFooter = "Company Proprietary" '& Chr(10) & "&P of &N"
.RightFooter = ""
.CenterHorizontally = True
.CenterVertically = False
End With
Application.ScreenUpdating = True
End Sub

Press CTRL F11 and add this to the "ThisWorkbook" Excel Object.

"teddybr218" wrote:

I would like to make a cell in a worksheet the header on all the
worksheets
in the workbook. Is this possible and if so how?

Thanks,
Cheryl



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,355
Default Header in Excel

Oops, ALT+F11. I do it all the time and my fingers know where to go. Thanks
for the save.

"Bernard Liengme" wrote:

CTRL+F11 or ALT+F11 ?
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Barb Reinhardt" wrote in message
...
I've done this with a Workbook_Before print event

I'll copy one of mine in and you can modify it as necessary. Note that I
used some named ranges that were defined within the workbook.

Application.ScreenUpdating = False
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = "Company Proprietary"

.RightHeader = ""
.LeftFooter = Range("ToolName").Text & Chr(10) & _
"Issue Date: " & Range("Issue_Date").Value & Chr(10) & _
"Issue Number: " & Range("IssueNumber").Value

.CenterFooter = "Company Proprietary" '& Chr(10) & "&P of &N"
.RightFooter = ""
.CenterHorizontally = True
.CenterVertically = False
End With
Application.ScreenUpdating = True
End Sub

Press CTRL F11 and add this to the "ThisWorkbook" Excel Object.

"teddybr218" wrote:

I would like to make a cell in a worksheet the header on all the
worksheets
in the workbook. Is this possible and if so how?

Thanks,
Cheryl




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
Header Row in Excel Larry Hughes New Users to Excel 7 February 6th 07 06:02 PM
Excel-Header-My Company Name won't work in Header (AT&T) & Time June K Excel Discussion (Misc queries) 2 April 10th 06 08:36 PM
Excel Header Marcy3 Excel Discussion (Misc queries) 2 March 15th 06 06:41 PM
Excel: custom header - is it possible to paste into header? Maureen D. Excel Worksheet Functions 0 November 4th 05 03:07 PM
how do I permanetly add custom header to excel header list? GARY Excel Discussion (Misc queries) 1 December 15th 04 08:52 PM


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

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

About Us

"It's about Microsoft Excel"