Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jenn
 
Posts: n/a
Default Customize Header From Cell Value

Is there a way to have the header of a workbook come from a value in a cell?
I have a template and would like to have the user type in what their project
name is in cell A1 and then have the Header become the value that they typed.
TIA!
  #2   Report Post  
Gord Dibben
 
Posts: n/a
Default

Jenn

Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet
.PageSetup.CenterFooter = .Range("A1").text
End With
End Sub

This is workbook event code.

With the workbook open and maximized, right-click on the Excel logo left of
"File" on menu bar.

Select "View Code".

Paste the above code in that module.

Note: only the active sheet will have that header.


Gord Dibben Excel MVP


On Mon, 29 Aug 2005 15:26:06 -0700, "Jenn"
wrote:

Is there a way to have the header of a workbook come from a value in a cell?
I have a template and would like to have the user type in what their project
name is in cell A1 and then have the Header become the value that they typed.
TIA!


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
cell reference in header row ML Excel Discussion (Misc queries) 4 August 26th 05 06:30 PM
excel - insert cell contents in a custom header / footer b Excel Discussion (Misc queries) 0 August 25th 05 06:51 PM
Modify many row cell (header) to one column darby Excel Discussion (Misc queries) 2 August 24th 05 05:16 PM
can I customize cell fill patterns in Excel? bghough Excel Discussion (Misc queries) 0 March 10th 05 06:09 PM
Same Cell Header For Every Page localhost Excel Discussion (Misc queries) 1 November 26th 04 02:40 PM


All times are GMT +1. The time now is 08:02 AM.

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"